From testing-toolkit
Analyzes test coverage reports from Jest, Vitest, pytest, and Go. Identifies gaps in lines/branches/functions, prioritizes tests for business logic, security, and errors.
How this skill is triggered — by the user, by Claude, or both
Slash command
/testing-toolkit:test-coverage-analyzerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze test coverage and identify testing gaps.
Analyze test coverage and identify testing gaps.
Run coverage and analyze results:
# JavaScript/TypeScript
npm test -- --coverage
# Python
pytest --cov=src --cov-report=term-missing
# Go
go test -cover ./...
JavaScript/TypeScript (Jest):
npm test -- --coverage --coverageReporters=text --coverageReporters=lcov
JavaScript/TypeScript (Vitest):
vitest run --coverage
Python (pytest):
pytest --cov=src --cov-report=html --cov-report=term-missing
Go:
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out
Review these key metrics:
Target thresholds:
Look for:
High Priority (test first):
Medium Priority (test next):
Low Priority (test if time permits):
For each gap:
Pattern: Find untested files
# Jest
npm test -- --coverage --collectCoverageFrom='src/**/*.{js,ts}' --coverageThreshold='{"global":{"lines":0}}'
# pytest
pytest --cov=src --cov-report=term-missing | grep "0%"
Pattern: Check specific module
# Jest
npm test -- path/to/module --coverage
# pytest
pytest tests/test_module.py --cov=src.module --cov-report=term-missing
Pattern: Enforce coverage thresholds
// package.json (Jest)
{
"jest": {
"coverageThreshold": {
"global": {
"branches": 70,
"functions": 70,
"lines": 70,
"statements": 70
}
}
}
}
For detailed information, see:
npx claudepluginhub p/armanzeroeight-testing-toolkit-plugins-testing-toolkitAnalyzes code coverage metrics (line, branch, function) to identify untested code paths, dead code, and coverage gaps. Supports Istanbul, coverage.py, JaCoCo, Go coverage.
Analyzes test coverage reports (lcov, cobertura, istanbul) to identify gaps in lines/branches/functions, map to requirements, recommend tests, and track trends.
Analyzes test coverage to identify untested code paths and suggest test additions. Useful when reviewing code safety or planning refactors.