Analyze code coverage metrics, identify untested code, and generate comprehensive coverage reports
Installation
npx claude-plugins install @jeremylongshore/claude-code-plugins-plus/test-coverage-analyzer
Contents
Folders: commands, skills
Files: LICENSE, README.md
Documentation
Analyze code coverage metrics, identify untested code, and generate comprehensive coverage reports.
Features
- Multi-metric coverage - Lines, branches, functions, statements
- Untested code identification - Find coverage gaps
- Coverage trends - Track improvements over time
- Threshold enforcement - Minimum coverage requirements
- Detailed reports - Per-file, per-function analysis
- Visual coverage maps - Highlight uncovered code
Installation
/plugin install test-coverage-analyzer@claude-code-plugins-plus
Usage
/analyze-coverage # Full coverage analysis
/analyze-coverage --threshold 80
/cov # Shortcut
Requirements
- Claude Code CLI
- Coverage tool (nyc, coverage.py, JaCoCo, etc.)
License
MIT
Included Skills
This plugin includes 1 skill definition:
analyzing-test-coverage
|
View skill definition
Test Coverage Analyzer
This skill provides automated assistance for test coverage analyzer tasks.
Prerequisites
Before using this skill, ensure you have:
- Test environment configured and accessible
- Required testing tools and frameworks installed
- Test data and fixtures prepared
- Appropriate permissions for test execution
- Network connectivity if testing external services
Instructions
Step 1: Prepare Test Environment
Set up the testing context:
- Use Read tool to examine configuration from {baseDir}/config/
- Validate test prerequisites are met
- Initialize test framework and load dependencies
- Configure test parameters and thresholds
Step 2: Execute Tests
Run the test suite:
- Use Bash(test:coverage-*) to invoke test framework
- Monitor test execution progress
- Capture test outputs and metrics
- Handle test failures and error conditions
Step 3: Analyze Results
Process test outcomes:
- Identify passed and failed tests
- Calculate success rate and performance metrics
- Detect patterns in failures
- Generate insights for improvement
Step 4: Generate Report
Document findings in {baseDir}/test-reports/:
- Test execution summary
- Detailed failure analysis
- Performance benchmarks
- Recommendations for fixes
Output
The skill generates comprehensive test results:
Test Summary
- Total tests executed
- Pass/fail counts and percentage
- Execution time metrics
- Resource utilization stats
Detailed Results
Each test includes: