Add test command discovery and a check runner, and offer a test map in Init

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-03 21:04:32 -08:00
1 parent aecc3afb4c
commit 82298d256c
10 files changed
+706 -13

No files matched your search

+3 -3
View File
@@ -11,8 +11,8 @@
In this order:
1. `AGENTS.md`'s test map and its "run single test" command.
2. Otherwise match by name, folder and imports of the changed files.
1. `AGENTS.md`'s `## Test map` table (`Area`, `Paths`, `Run`, `Shared`; it may sit behind one link to `.agents-docs/AGENTS-test-map.md`), read with `test-map.mjs read` when the skill ships it, plus the "run single test" command.
2. Otherwise match by name, folder and imports of the changed files; `test-match.mjs` does this when the skill ships it.
A runner's own related-tests flag may be used when `AGENTS.md` records it. It is never required.
@@ -22,7 +22,7 @@ Lint, a type check, a size check: run them at phase end only when the project or
## Shared ground
A test helper or fixture, build or test config, a widely imported module, a shared type or schema. Touching any of these is the moment to offer a wider run: say what was touched and why it reaches wide, and let the person choose.
A test helper or fixture, build or test config, a widely imported module, a shared type or schema. A test map row marked `Shared: yes` is shared ground by definition. Touching any of these is the moment to offer a wider run: say what was touched and why it reaches wide, and let the person choose.
## Ask when unsure