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 the reviewed JSON test spec with captured expectations
The batch command handles the orchestration, commits successful outputs, and can raise a PR at the end.
| File | Purpose |
|---|---|
test-specs/<item_id>.json |
reviewed spec with fixtures, branch manifest, unit test definitions, and captured expectations |
The JSON spec is the committed test-generation artifact. /generate-model consumes it and renders dbt unit_tests: into the generated schema YAML.
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 SQL Refactoring.