.claude/skills/test-coverage/SKILL.md
Run tests with coverage and report uncovered lines/branches per class. Use when user wants to check test coverage, find untested code, identify coverage gaps, or mentions /test-coverage command. Also use after green phases to verify new code is well-covered.
npx skillsauth add rakovi4/continue-example test-coverageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
/test-coverage usecase
/test-coverage h2
/test-coverage rest RegisterUserController
/test-coverage usecase --focus # only classes touched in recent git diff
First word is the module:
usecase → :usecaseh2, rest, email, scheduling, security → :adapters:{name}domain → :domainOptional second word filters the report to classes matching that name.
Optional --focus flag restricts the report to classes changed since the last commit (useful after a green phase to check only new code).
Delegate to .claude/agents/coverage-agent.md which loads .claude/tech/{backend}/templates/testing/coverage-commands.md for commands, report format, gap mapping, and remediation.
Steps:
--focus mode: map gaps to scenarios, classify reachability, update progress.md with red/green steps for reachable gaps, flag dead code for refactor.claude/agents/coverage-agent.md — workflow for gap analysis, reachability classification, progress.md updates.claude/templates/testing/coverage-commands.md — universal workflow: focus mode, module mapping, report format.claude/tech/{backend}/templates/testing/coverage-commands.md — tool-specific commands: run, parse, extracttesting
Run use-case module tests quickly. Use when user wants to run use-case tests or mentions /test-usecase command.
development
Generate BDD test specifications for story in 6 categories (API, UI, Load, Infrastructure, Security, Integration). Use when user wants to create test cases or mentions /test-spec command.
testing
Review tests to replace loose validation (contains, isNotNull, isNotEmpty) with strict validation (isEqualTo on parsed fields). Use when user wants to improve test assertions or mentions /test-review command.
development
Run frontend tests. Use when user wants to run frontend unit tests or mentions /test-frontend command.