test-coverage-analyzer

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

509 stars

Best use case

test-coverage-analyzer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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

Teams using test-coverage-analyzer should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/test-coverage-analyzer/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/code-migration-modernization/skills/test-coverage-analyzer/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/test-coverage-analyzer/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How test-coverage-analyzer Compares

Feature / Agenttest-coverage-analyzerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Test Coverage Analyzer Skill

Analyzes test coverage comprehensively to identify gaps and ensure adequate test safety nets before undertaking migration efforts.

## Purpose

Enable comprehensive test coverage analysis for:
- Pre-migration coverage assessment
- Critical path coverage verification
- Coverage gap identification
- Test strategy planning
- Regression risk assessment

## Capabilities

### 1. Line/Branch/Path Coverage Measurement
- Calculate line coverage percentages
- Measure branch coverage
- Analyze path coverage
- Track condition coverage

### 2. Coverage Gap Identification
- Find untested code paths
- Identify missing edge cases
- Detect uncovered error handlers
- Map coverage blind spots

### 3. Critical Path Coverage Analysis
- Identify business-critical paths
- Prioritize coverage by importance
- Map risk vs coverage
- Generate focused test recommendations

### 4. Integration Test Coverage Mapping
- Track integration point coverage
- Map API endpoint testing
- Assess database operation coverage
- Verify external service testing

### 5. Coverage Trend Analysis
- Track coverage over time
- Identify coverage regression
- Monitor improvement progress
- Generate trend reports

## Tool Integrations

| Tool | Language | Integration Method |
|------|----------|-------------------|
| Istanbul/nyc | JavaScript/TypeScript | CLI |
| JaCoCo | Java | CLI / Maven/Gradle |
| Cobertura | Java/Python | CLI |
| Coverage.py | Python | CLI |
| SimpleCov | Ruby | CLI |
| go test -cover | Go | CLI |
| dotCover | .NET | CLI |

## Output Schema

```json
{
  "analysisId": "string",
  "timestamp": "ISO8601",
  "coverage": {
    "line": {
      "percentage": "number",
      "covered": "number",
      "total": "number"
    },
    "branch": {
      "percentage": "number",
      "covered": "number",
      "total": "number"
    },
    "function": {
      "percentage": "number",
      "covered": "number",
      "total": "number"
    }
  },
  "gaps": [
    {
      "file": "string",
      "uncoveredLines": ["number"],
      "uncoveredBranches": ["string"],
      "criticality": "high|medium|low",
      "recommendation": "string"
    }
  ],
  "criticalPaths": {
    "covered": "number",
    "total": "number",
    "uncoveredPaths": []
  }
}
```

## Integration with Migration Processes

- **migration-testing-strategy**: Coverage baseline establishment
- **code-refactoring**: Pre-refactoring safety assessment
- **framework-upgrade**: Regression protection verification

## Related Skills

- `characterization-test-generator`: Generate tests for gaps
- `static-code-analyzer`: Combined quality analysis

## Related Agents

- `migration-testing-strategist`: Uses for test planning
- `regression-detector`: Uses for regression prevention

Related Skills

vitest

509
from a5c-ai/babysitter

Vitest configuration, mocking, coverage, snapshot testing, and performance.

react-testing-library

509
from a5c-ai/babysitter

React Testing Library patterns, queries, user events, and accessibility testing.

terraform-analyzer

509
from a5c-ai/babysitter

Specialized skill for analyzing Terraform configurations. Supports parsing, security scanning (tfsec, checkov), cost estimation (infracost), drift detection, and plan visualization across AWS, Azure, and GCP.

load-test-generator

509
from a5c-ai/babysitter

Generate load test scripts for k6, Locust, and Gatling from OpenAPI specs

db-query-analyzer

509
from a5c-ai/babysitter

Analyze database query performance with execution plans and index recommendations

code-complexity-analyzer

509
from a5c-ai/babysitter

Analyze code complexity metrics including cyclomatic complexity, code smells, and technical debt

cloudformation-analyzer

509
from a5c-ai/babysitter

Validate and analyze AWS CloudFormation templates for security and best practices

cloud-security-testing

509
from a5c-ai/babysitter

Multi-cloud security assessment and penetration testing capabilities. Execute Prowler/ScoutSuite assessments, analyze IAM policies, identify cloud misconfigurations, test permissions, and enumerate cloud resources across AWS/GCP/Azure.

semantic-code-analyzer

509
from a5c-ai/babysitter

LLM-powered semantic analysis of code diffs to detect business-logic trojans

sast-analyzer

509
from a5c-ai/babysitter

Static Application Security Testing orchestration and analysis. Execute Semgrep, Bandit, ESLint security plugins, CodeQL, and other SAST tools. Parse, prioritize, and deduplicate findings across multiple tools with remediation guidance.

crypto-analyzer

509
from a5c-ai/babysitter

Cryptographic implementation analysis and validation for encryption algorithms, key sizes, and certificate management

semver-analyzer

509
from a5c-ai/babysitter

Analyze code changes and determine semantic version bumps. Detect breaking changes automatically, suggest version bump (major/minor/patch), generate changelog entries, and validate version consistency.