Testing & Cleanup¶
Run Tests¶
Test Layout¶
src/tests/– in‑crate unit teststests/– integration/property tests and fixtures
Test Storage Cleanup¶
Tests use temporary storage under target/dbt-nova-tests and clean up automatically.
Startup cleanup (one‑time per test run): - Removes stale temp dirs older than 5 minutes. - Controlled by: - DBT_NOVA_TEST_CLEANUP_AGE_SECS=0 → remove all temp dirs on start - DBT_NOVA_TEST_CLEANUP_ALL=1 → force full cleanup
These variables are test-only and are ignored in production runs.
Manual cleanup:
Fuzzing (Monthly Schedule)¶
Short fuzz runs are scheduled in CI on the first day of each month. To run locally:
Coverage¶
Coverage uses cargo llvm-cov (runs in CI as a separate job).
Snapshots¶
Snapshot tests live in tests/snapshots.rs. Update snapshots with: