xiaohongshu
xiaohongshu
coverage-reporter
Generate and analyze test coverage reports. Use to identify coverage gaps, track coverage trends, and ensure quality thresholds are met.
Full skill instructions
Comprehensive test coverage analysis and reporting for Python and TypeScript code.
Python Coverage
cd backend
pytest --cov=app --cov-report=html --cov-report=term-missing
TypeScript Coverage
cd frontend
npm run test:coverage
Step 2.1: Identify Untested Code
For each file:
1. Count lines not covered
2. Identify untested functions
3. Identify untested branches
4. Calculate coverage percentage
Step 2.2: Prioritize by Risk
| Risk Level | Type | Priority |
|---|---|---|
| Critical | Auth, crypto, data access | Fix immediately |
| High | Business logic, validation | Fix within 48h |
| Medium | Utils, helpers | Fix within 1 week |
| Low | Formatting, display | Nice to have |
## Test Coverage Report
**Date:** [DATE]
**Overall Coverage:** [X]%
### Summary
- Backend: [X]%
- Frontend: [Y]%
- Target: 80%
### Critical Gaps
- [File]: [X]% - [reason]
- [File]: [Y]% - [reason]
### Trends
- Week 1: 75%
- Week 2: 77%
- Week 3: 79%
- Trend: Improving
### Recommendations
1. [Recommendation 1]
2. [Recommendation 2]
1. Historical coverage
- Track weekly/monthly trends
- Identify degradation
- Project future coverage
2. Coverage velocity
- How fast is coverage improving?
- Estimate time to target
3. Coverage stability
- Which areas consistently low?
- Which areas consistently high?
| Layer | Target | Minimum |
|---|---|---|
| Services | 90% | 80% |
| Controllers | 85% | 75% |
| Models | 80% | 70% |
| Utils | 90% | 85% |
| Routes | 75% | 65% |
| Components (Frontend) | 80% | 70% |
# Python coverage with details
cd backend
pytest --cov=app --cov-report=html --cov-report=term-missing -v
# Frontend coverage
cd frontend
npm run test:coverage
# Coverage diff against main
# (Identify what new code is untested)
git diff main...HEAD | grep "^+" | wc -l
1. Understand the code
- What does it do?
- When is it called?
- Why isn't it tested?
2. Determine test strategy
- Unit test?
- Integration test?
- E2E test?
3. Write tests
- Happy path
- Error cases
- Edge cases
4. Verify coverage
- Re-run coverage
- Confirm improved
When coverage gaps identified:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience