Specmonstah
  • Introduction
  • Infomercial
  • Tutorial
    • Concepts
    • 01: ent db
    • 02: schemas
    • 03: queries
    • 04: refs
    • 05: progressive construction
    • 06: spec-gen
    • 07: spec gen customization and omission
    • 08: visiting functions
    • 09: performing inserts
    • 10: uniqueness constraint
    • 11: collection constraint (vector of foreign keys)
    • 12: what about cycles?
Powered by GitBook
On this page

Was this helpful?

Tutorial

Specmonstah was born out of a need to replace brittle, repetitive code for creating deeply-nested hierarchies of data in unit tests. This tutorial will show you how to use Specmonstah specifically for this use case. Along the way you'll learn how to make the most of Specmonstah by understanding how it's not implemented to support writing unit tests per se, but to support the more fundamental operations of generating and manipulating entity graphs.

In trying to figure out how to explain this I had the thought, "Specmonstah is all about data and the stuff you can do with that data. It felt super profound, like I had gotten a direct glimpse of the underlying structure of the cosmos. Real "shower thoughts" moment.

We'll start with a high-level overview of how Specmonstah's data and operations support the overall goal of aiding testing by generating and inserting records in a database in dependency order.

PreviousInfomercialNextConcepts

Last updated 5 years ago

Was this helpful?