Testing
- Run:
cargo test(CI default) orcargo test --all-features. Prefer red-green (see karpathy-principle). - insta snapshots (YAML): after intended output changes, review with
cargo insta review(orcargo insta accept). Never blindly accept. - Selective Git LFS: only large fixtures/specific snapshots are LFS-tracked (
tests/data/**,*.bin, and named snaps in.gitattributes); most.snapfiles are plain git. Havegit lfsinstalled so fixtures resolve. rstestfor parameterized tests/fixtures;tracing-testto assert on logs;temp_testdir/tempfilefor scratch dirs;pretty_assertionsfor diffs.- The full UTA-backed suite needs a Postgres service (see CI); most tests don't.