Correctness¶
The harness defines correctness as evidence that a published dbwarden package can move a real database between intended schema states and describe the result accurately.
Correctness is layered:
- The package installs and exposes the public CLI.
- The provider starts and reports the expected server version.
- The migration file is generated and has the expected artifacts.
- The database accepts and applies the SQL.
- The resulting state matches the reference schema.
- Reverse-engineered models can be loaded by a consumer project.
- Public diff reports no remaining operations.
- Rollback and reapplication preserve the expected history.
A command exit code is therefore only one assertion in a passing test.