Expand description
The standard suite-tier layout, derived from the package root.
The standard places a package’s test suites at fixed locations relative to
its package root: colocated unit tests beside the sources, the integration
suite in tests/integration/, and the e2e suite in tests/e2e/ (Rust’s
cargo layout keeps both out-of-crate suites in the crate root’s tests/).
The scans derive those locations from the scanned path and the package’s
own manifest — integration lint takes its subjects from the derived suite
directories, and the unit-tier scans leave <package root>/tests/ to them.
Functions§
- package_
root - The package root for
scan_root: the nearest directory at or above it holdingmanifest(pyproject.toml,package.json, orCargo.toml). The walk stops at a.gitboundary so it cannot escape the repository into an unrelated manifest.Nonewhen no manifest is found — a loose-script tree, scanned atscan_rootdirectly. - suite_
tests_ dir - The
<package root>/tests/directoryscan_rootbelongs to, orNonefor a loose-script tree. The unit-tier scans skip every file under it — that subtree belongs to the suite tiers.