← ClaudeAtlas

test-coveragelisted

Analyze and improve test coverage. Use when reviewing coverage gaps, writing missing tests, setting up coverage tooling, or improving branch/line/statement coverage for any language or framework.
drafael/coding-harness · ★ 1 · Testing & QA · score 77
Install: claude install-skill drafael/coding-harness
# Test Coverage Analyze and report test coverage: **$ARGUMENTS** ## Instructions Follow this systematic approach to analyze and improve test coverage: 1. **Coverage Tool Setup** - Identify and configure appropriate coverage tools: - JavaScript/Node.js: Jest, NYC, Istanbul - Python: Coverage.py, pytest-cov - Java: JaCoCo, Cobertura - C#: dotCover, OpenCover - Ruby: SimpleCov - Configure coverage reporting formats (HTML, XML, JSON) - Set up coverage thresholds and quality gates 2. **Baseline Coverage Analysis** - Run existing tests with coverage reporting - Generate comprehensive coverage reports - Document current coverage percentages: - Line coverage - Branch coverage - Function coverage - Statement coverage - Identify uncovered code areas 3. **Coverage Report Analysis** - Review detailed coverage reports by file and directory - Identify critical uncovered code paths - Analyze branch coverage for conditional logic - Find untested functions and methods - Examine coverage trends over time 4. **Critical Path Identification** - Identify business-critical code that lacks coverage - Prioritize high-risk, low-coverage areas - Focus on public APIs and interfaces - Target error handling and edge cases - Examine security-sensitive code paths 5. **Test Gap Analysis** - Categorize uncovered code: - Business logic requiring immediate testing - Error handling and exception p