Repository navigation
Testing
Manech Dubreil edited this page Sep 1, 2026
·
1 revision
cargo test # run the full suite
cargo test -- --nocapture # with stdout
cargo test <test_name> # a single testEvery pull request against main or dev runs (see .github/workflows/):
-
cargo fmt --all -- --check(quality.yml) -
cargo clippy --all-targets --all-features -- -D warnings(quality.yml) -
cargo test --all(tests.yml) -
cargo tarpaulin --all --out Xmlfor coverage, uploaded to Codecov (tests.yml) -
cargo auditfor dependency vulnerabilities (security.yml)
Tests are colocated with the code they exercise (#[cfg(test)] mod tests at the bottom
of each module), not in a separate tests/ directory. Concrete examples:
-
src/pivot/mod.rs—schema_round_trips_through_jsonassertsSchema::from_json(schema.to_canonical_json()) == schema;canonical_json_has_sorted_keysasserts the serialization property described in Pivot IR. -
src/importer/prisma/mod.rs— one focused unit test per feature, plusparse_full_test_schema, a comprehensive test that parsestest.prisma(a realistic multi-table fixture at the repo root) and asserts a full JSON round-trip.
See Importers for how this pattern should extend to a new importer or exporter.
|
Manech DUBREIL dmanech@gmail.com |
Timéo TRÉGAROT timeo.tregarot@epitech.eu |
Aymeric JOUANNET-MIMY aymeric.jouannet-mimy@epitech.eu |
Esteban BOUYAULT-MIMY esteban.bouyault-yvanez@epitech.eu |
Arthur DRAHY arthur.drahy@epitech.eu |