Testing Standards
Validate test coverage and generate missing tests.
When to use this skill
- After implementing new features
- When refactoring existing code
- To identify gaps in test coverage
- During test quality improvements
- When asked to "add tests" or "improve coverage"
Skill Contents
Available Resources
π references/ - Detailed documentation
Quick Start
- Run coverage report for your technology:
- JavaScript/TypeScript:
pnpm run test:coverage - Python:
pytest --cov=. --cov-report=html - Java:
./gradlew jacocoTestReport - Go:
go test -cover ./...
- JavaScript/TypeScript:
- Review uncovered files and functions
- Apply patterns from the references:
references/test-patterns.md- General test patternsreferences/{technology}/test-patterns.md- Technology-specific patterns
- Write tests for uncovered code paths
- Re-run coverage to verify improvement
Coverage Targets
| Type | Target | |------|--------| | Line coverage | 80%+ | | Branch coverage | 70%+ | | Critical paths | 100% |
Coverage Tools
| Technology | Tool | |------------|------| | Java | JaCoCo | | JavaScript/TypeScript | Jest, NYC | | Python | coverage.py, pytest-cov | | Go | go test -cover |
References
| Technology | Reference |
|------------|-----------|
| Java | references/java/test-patterns.md |
| TypeScript | references/typescript/test-patterns.md |
| Python | references/python/test-patterns.md |
| Go | references/go/test-patterns.md |
Related Skills
- quality-checks - Quality check orchestration
- doc-validation-rfc-37 - Documentation validation
java-testing- Java-specific testing (for Java projects)