Skip to content

a5c-ai/babysitter / library/specializations/code-migration-modernization/skills/test-coverage-analyzer

test-coverage-analyzer

Verified

Analyze test coverage and identify gaps before migration to ensure adequate safety nets

FileKindSize
README.mdmarkdown1.4 KB
SKILL.mdskill md3.2 KB
# 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
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall