Coverage Command
Runs Python test coverage analysis and identifies files with low coverage.
/plugin marketplace add jleechanorg/claude-commands/plugin install claude-commands@claude-commands-marketplaceWhen this command is invoked, YOU (Claude) must execute these steps immediately: This is NOT documentation - these are COMMANDS to execute right now. Use TodoWrite to track progress through multi-phase workflows.
Action Steps:
Purpose: Run Python test coverage analysis and identify coverage gaps
Usage: /coverage [options]
Options:
--text: Text report only (no HTML)--integration: Include integration tests--gaps: Focus on files with low coverageImplementation:
coverage.sh script with appropriate flagsOutput Format:
š Coverage Analysis Results
========================
Overall Coverage: 67%
ā
Well Covered (>80%):
- game_state.py: 90%
- constants.py: 85%
ā ļø Needs Improvement (<50%):
- firestore_service.py: 45% (missing: lines 234-267, 301-315)
- gemini_service.py: 38% (missing: error handling paths)
š Coverage Gaps for Planning Blocks:
- narrative_response_schema.py: Line 89-95 (JSON validation edge cases)
- app.js frontend parsing: Not measured (JavaScript)
š” Recommendations:
1. Add tests for error handling in gemini_service.py
2. Test edge cases in planning block JSON validation
3. Add integration tests for full planning block flow
š HTML Report: file:///tmp/$PROJECT_NAME/coverage/index.html
Integration with CI: