// Measure test coverage and identify untested code. Use when assessing test completeness.
| name | calculate-coverage |
| description | Measure test coverage and identify untested code. Use when assessing test completeness. |
| mcp_fallback | none |
| category | analysis |
| tier | 2 |
Measure code coverage percentage and identify which code paths are untested to ensure comprehensive testing.
# Python coverage with pytest
pip install coverage pytest-cov
pytest --cov=module_name --cov-report=html tests/
# View coverage report
open htmlcov/index.html
# Check coverage threshold
coverage report --fail-under=80
Coverage analysis:
run-tests skill for test executiongenerate-tests skill for test creation