Analyze test coverage for recent code changes
/plugin marketplace add mahidalhan/skilled-spec/plugin install workflow-tools@skilled-intelligenceAnalyzes test coverage for user changes in the codebase, identifying untested code paths and recommending test additions.
Get git diff:
# Get unstaged changes
git diff
# Get staged changes
git diff --cached
# Get changes from last N commits
git diff HEAD~N..HEAD
Categorize changes:
For each changed file:
Backend Changes:
Frontend Changes:
For each changed file, determine:
Missing Test Files:
Incomplete Coverage:
Create a structured report:
# Test Coverage Report
**Generated**: [timestamp]
**Changes Analyzed**: [commit range or diff summary]
## Summary
- **Files Changed**: [count]
- **Files with Tests**: [count]
- **Files Missing Tests**: [count]
- **Coverage Gaps**: [count]
## Detailed Analysis
### [file_path]
- **Change Type**: [API endpoint / Service / Component / etc.]
- **Test Status**: Covered / Partial / Missing
- **Existing Tests**: [test files that cover this]
- **Coverage Gaps**:
- [ ] Missing test for [scenario]
- [ ] Error path not covered: [scenario]
- **Recommendations**:
- Add test: [scenario description]
## Priority Actions
### High Priority (Critical Paths)
1. [Action] - [Reason]
### Medium Priority (Important Features)
1. [Action] - [Reason]
### Low Priority (Edge Cases)
1. [Action] - [Reason]
All API Endpoints:
All Services (if extracted):
Complex Frontend Logic: