Tests
Choose the narrowest test that exercises the behavior you changed:
| Test type | Use it for | Typical command |
|---|---|---|
| Unit test | Logic contained within one crate or component | cargo nextest run -p <package> |
| Sqlness test | SQL, protocol, planner, execution, and end-to-end regressions | cargo sqlness bare -t <case> |
| Integration test | Behavior that crosses components or requires external services | cargo nextest run -p tests-integration |
| Compatibility test | Reading data or metadata written by an older release | cargo sqlness compat --from-version <version> |
Run make test when a change needs the full Rust workspace test suite. Changes to persisted metadata, WAL records, SST files, or wire formats should also include a compatibility test when an older release may have produced the input.