Stage 3 Test Generation - accelerate-data/migration-utility GitHub Wiki
/generate-tests creates migration test scenarios, reviews them independently, and captures ground truth in the sandbox.
-
manifest.jsonwithruntime.sandbox - a running sandbox
- completed scoping
- completed profiling
/generate-tests silver.DimCustomer silver.FactInternetSales
- generate the test scenarios
- run the independent review loop
- execute approved scenarios in the sandbox
- write dbt-ready YAML test artifacts
The batch command handles the orchestration, commits successful outputs, and can raise a PR at the end.
| File | Purpose |
|---|---|
test-specs/<item_id>.json |
intermediate spec with fixtures, branch manifest, and captured expectations |
test-specs/<item_id>.yml |
dbt-ready committed artifact |
The JSON spec is the working artifact for the pipeline. The YAML file is the user-facing dbt artifact that gets committed for downstream model generation.
Use ad-migration teardown-sandbox after you are done with test generation and SQL proof workflows that depend on the sandbox. See Sandbox Operations for the sandbox lifecycle.
Proceed to Stage 5 SQL Refactoring.