Skip to main content

Module location

Module location 

Source
Expand description

Unit-test location/naming check (Python — issue #15; TypeScript — issue #18).

Convention (README “Location & Naming”; internals/*/testing.md): a source file is unit-tested by a colocated test named after it — foo.pyfoo_test.py (Python), foo-bar.tsfoo-bar.test.ts (TypeScript). missing_unit_tests walks a tree for a Language and returns every source file with no such sibling — an “orphan”. Test files are what the check looks for, never subjects.

Enums§

Language
A language whose unit-test location/naming convention can be checked.

Functions§

missing_unit_tests
Walk root recursively and return every source file (for language) that has no colocated unit test, sorted for deterministic output.