Skip to main content

Crate testing_conventions

Crate testing_conventions 

Source

Modules§

colocated_test
The unit colocated-test check (Python — issue #15; TypeScript — issue #18; exemptions — issue #32).
config
The testing-conventions config schema and loader.
coverage
Coverage rule (Python — issue #26; TypeScript — issue #31; exemptions — issue #32).
isolation
Rust unit-isolation lint (#44): an inline #[cfg(test)] mod may call only into the unit under test — its parent module, reached via super::. A call out of the test’s own module — into another first-party module (crate::…), an external crate, or effectful std — is a violation. Inject a trait double (hand-rolled or mockall) instead; the compiler checks the double.
lint
Integration-test lints (issue #19; rules #48–#52) — the integration lint command.
packaging
Packaging rule — foundation (issue #70).
ts
TypeScript isolation analysis (issue #43), parsed with oxc.
violation
The shared Violation type emitted by the deterministic test-code lints.

Structs§

Cli

Functions§

run