What Is Seed Data?
Seed data is the baseline content inserted into a database to bootstrap it into a usable, known state. Test suites load seeds so queries and assertions run against predictable rows, and new environments use seeds to populate reference tables like roles or settings. Seeds are typically defined in scripts so they can be reapplied consistently.
Why it matters
A blank database makes most integration tests impossible to write deterministically. Seeding establishes the fixtures every test can rely on, so results depend on the code under test rather than leftover data.
Related guides
What Is Test Data Management?Test data management is the practice of provisioning, refreshing, masking, and tearing down the data that aut…
What Is a Golden Dataset?A golden dataset is a curated, version-controlled set of reference inputs and expected outputs used to valida…
What Is a Test Factory?A test factory is a helper that builds valid test objects on demand with sensible defaults, letting tests ove…