ADR 003 Colocated Test Naming
Decision
Section titled “Decision”Tests are colocated with the production module, schema, script, or component they verify.
- Python:
module.pyandmodule_test.py. - TypeScript/Astro support:
module.tsandmodule_test.ts. - Do not add
test_*.py,*.test.ts,*.spec.ts, or central__tests__trees. - Integration drivers remain beside their owning script or interface. A broad
tests/folder is migration debt, not a permanent exception.
Implementation Evidence
Section titled “Implementation Evidence”- Backend booking implementation and colocated test
- Latest stage cleanup test uses colocated suffix
- Contract booking types and colocated test
- Frontend Atomic UI and colocated tests
- Known backend integration-test debt
Consequences
Section titled “Consequences”Current tracked files use the *_test suffix. Three backend integration tests
remain under a central tests/ tree, so full colocation is not yet complete.