a5c-ai/babysitter / library/specializations/code-migration-modernization/skills/test-coverage-analyzer
test-coverage-analyzer
VerifiedAnalyze test coverage and identify gaps before migration to ensure adequate safety nets
README.md
View on GitHub# Test Coverage Analyzer Skill
## Overview
The Test Coverage Analyzer skill provides comprehensive coverage analysis to identify testing gaps before migration. It ensures adequate test safety nets exist to catch regressions.
## Quick Start
### Prerequisites
- Coverage tool for your language (Istanbul, JaCoCo, Coverage.py, etc.)
- Existing test suite
### Basic Usage
1. **Run existing tests with coverage**
```bash
# JavaScript/TypeScript
npx nyc npm test
# Java
mvn test jacoco:report
# Python
pytest --cov=src
```
2. **Analyze coverage reports**
- Review overall coverage percentages
- Identify uncovered critical paths
- Map coverage gaps
## Features
### Coverage Metrics
| Metric | Description | Target |
|--------|-------------|--------|
| Line Coverage | Lines executed | > 80% |
| Branch Coverage | Decision branches | > 70% |
| Function Coverage | Functions called | > 90% |
| Path Coverage | Execution paths | > 60% |
### Gap Analysis
- Identifies untested code
- Prioritizes by business criticality
- Suggests test generation targets
- Maps to characterization test needs
## Configuration
```json
{
"coverageThresholds": {
"line": 80,
"branch": 70,
"function": 90
},
"criticalPaths": [
"src/auth/**",
"src/payment/**"
],
"excludePaths": ["test/", "dist/"]
}
```
## Related Documentation
- [SKILL.md](./SKILL.md) - Full skill specification
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |