Skip to content

Developer Guide ​

How to propose a change is described in CONTRIBUTING.md.

Where tests live ​

Test code and source code are in separate folders.

KindLocationSees
Rust unit testscrates/<crate>/tests/unit/, mirroring the src/ path of the module they testThe module's private items: each file is declared from its module as #[cfg(test)] #[path = "../tests/unit/<file>.rs"] mod tests;
Rust integration testscrates/<crate>/tests/*.rsThe crate's public interface only; each file is its own test target
Python testspython/<package>/tests/The package as installed
Fixturescrates/<crate>/fixtures/Read by tests through relative paths

A test file, test directory or inline test module under src/ is refused by the Test layout gate.

Released under the Apache License 2.0.