/test — suite & coverage gate
Goal: every acceptance criterion is covered and the suite is green.
Do this
- Detect the runner from the repo (vitest/jest/pytest/...) — don't assume.
- Run the full suite (not just the files you touched) to catch regressions. Run long suites inside tmux.
- Run coverage. Compare against the spec's acceptance criteria:
- Any criterion without a test → delegate to
harness-claude:tdd-guideto add it (test-first). - Coverage < 80% on changed code → add tests for the gaps.
- Any criterion without a test → delegate to
- For web, add/refresh e2e for any critical flow the change affects (Playwright); add visual regression for visual-heavy UI.
- Fix the implementation, not the test — unless the test is wrong.
Exit criterion
Suite green, coverage ≥ 80% on changed code, every acceptance criterion has a test.
Then /harness-claude:verify.