home / skills / shotaiuchi / dotclaude / review-test-coverage
This skill helps review test coverage across unit and integration tests, ensuring edge cases, quality, and maintainability.
npx playbooks add skill shotaiuchi/dotclaude --skill review-test-coverageReview the files below or copy the command above to add this skill to your agents.
---
name: review-test-coverage
description: >-
Test coverage-focused code review. Apply when reviewing code for
missing unit tests, integration tests, edge cases, error handling paths,
test quality, and test maintainability.
user-invocable: false
---
# Test Coverage Review
Review code from a testing perspective.
## Review Checklist
### Unit Test Coverage
- Verify all public functions have unit tests
- Check boundary conditions and edge cases are tested
- Look for missing null/empty/error path tests
- Verify assertions are meaningful (not just "no exception thrown")
### Integration Test Coverage
- Check critical user flows have integration tests
- Verify API endpoints are tested end-to-end
- Look for missing database interaction tests
- Check external service integration points
### Test Quality
- Verify tests are independent (no shared mutable state)
- Check test naming clearly describes the scenario
- Look for flaky tests (timing, ordering, external dependencies)
- Verify proper use of mocks/stubs (not over-mocking)
### Edge Cases & Error Handling
- Check error paths are tested (exceptions, failures)
- Verify timeout and retry behavior is tested
- Look for race condition tests in concurrent code
- Check boundary values (0, -1, MAX, empty, null)
### Test Maintainability
- Verify test helpers/fixtures reduce duplication
- Check tests don't depend on implementation details
- Look for proper setup/teardown handling
- Verify test data is clear and self-documenting
## Output Format
Report findings with priority:
| Priority | Description |
|----------|-------------|
| Missing | Critical path without any test coverage |
| Incomplete | Test exists but misses important cases |
| Quality | Test exists but has quality issues |
| Enhancement | Additional test would improve confidence |
This skill performs a test coverage-focused code review to find gaps in unit and integration tests, edge cases, and test quality. It highlights missing critical paths, incomplete cases, and maintainability issues to improve confidence in the codebase. The report prioritizes findings so teams can act on the highest-risk gaps first.
The skill inspects source and test files to verify that public functions and API endpoints have corresponding tests, and that error and edge conditions are exercised. It evaluates test quality: independence, naming, flakiness risks, and proper use of mocks and fixtures. Finally, it categorizes findings into Missing, Incomplete, Quality, or Enhancement priorities for actionable follow-up.
What does 'Missing' priority mean?
A critical code path has no tests at all and requires immediate coverage to avoid regressions.
How do you detect flaky tests?
Look for tests that depend on timing, external services, ordering, or shared state; reproduce failures locally and check CI history for intermittent failures.