What Is a Golden Dataset?
A golden dataset is a stable, hand-curated collection of inputs paired with their known-correct outputs, kept under version control and treated as the source of truth for a test. Pipelines run the system against it and compare results to the recorded expectations. Because the data is fixed and reviewed, any difference points to a real behavior change rather than noise.
Why it matters
Randomly generated inputs make failures hard to reproduce. A golden dataset gives every run the same baseline, so regressions surface deterministically and can be debugged against a known example.
Common uses
- Validating data transformations and ETL output
- Regression testing for ML model predictions
- Pinning parser or serializer behavior
Related guides
What Is a Golden File?A golden file is a stored reference output that a test compares against, flagging any difference as a failure…
What Is Seed Data?Seed data is a predefined set of records loaded into a database before tests or a new environment runs, givin…
What Is a Snapshot Test?A snapshot test records a serialized output on first run and fails later runs when the output changes, catchi…