diff options
Diffstat (limited to 'add-tests')
| -rw-r--r-- | add-tests/SKILL.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/add-tests/SKILL.md b/add-tests/SKILL.md index 95e7a2e..3dd91fc 100644 --- a/add-tests/SKILL.md +++ b/add-tests/SKILL.md @@ -1,3 +1,8 @@ +--- +name: add-tests +description: Add test coverage to under-tested code through four phases — Analyze, Propose, Write, Report. Phase 1 inventories code and flags testability-blocked functions (so coupled to UI/framework that testing would mock the code under test). Phase 2 presents a plan and stops for user approval, with per-function pairwise-vs-exhaustive choice for parameter-heavy functions and refactor-or-skip for testability-blocked ones. Phase 3 writes Normal/Boundary/Error tests and diagnoses test-vs-code failures instead of reflexively patching either side. Phase 4 reports test count, coverage change, bugs surfaced. Refactors testability-blocked functions into pure helper + interactive wrapper before testing rather than mocking it. Use when raising coverage on existing code. Do NOT use for TDD on new code (inline), a single failing test (just fix it), characterization snapshot (write directly), or happy-path smoke test. Companion to `/pairwise-tests` and the Normal/Boundary/Error discipline in `testing.md`. +--- + # /add-tests Add test coverage to existing code by analyzing, proposing, writing, and reporting. |
