unit-test-analyzing-code-coverage
Installation
SKILL.md
Usage
Apply this skill when:
- A test suite exists and you need to find what is NOT tested
- A coverage report (coverage.py, Istanbul, JaCoCo) is provided for analysis
- A developer asks "what am I missing?" after initial test generation
- Pre-sprint planning requires coverage gap estimation
Coverage Types — Know All Four
| Type | What It Measures | Target |
|---|---|---|
| Line Coverage | Were these lines executed? | >= 80% |
| Branch Coverage | Were both sides of every if/else hit? | >= 75% |
| Function Coverage | Was every function called at least once? | >= 90% |
| Statement Coverage | Were all statements executed? | >= 80% |
Branch coverage is the most valuable — prioritize it.