Skip to main content
AIDiveForge AIDiveForge
🕳️

Test Gap Finder

Code & Development · by AIDiveForge · Apr 20, 2026 · Advanced

Combine coverage data with mutation-testing survivors to produce a ranked list of untested behaviors — the ones most likely to ship bugs.

🧠 Why it works

Line coverage overstates quality — a test can execute a line without asserting on its result, leaving a mutation-survivor that proves the behavior is untested. Combining the two datasets reveals the gap: high execution coverage plus high mutation survival equals 'we run this code but don't check the result.' That is the highest-ROI gap to close.

⚙️ How it works

  1. Ingest coverage report (lcov, cobertura, or similar) and mutation report (stryker, mutmut, pitest). 2. For each file, compute per-line (executed, mutant_killed, mutant_survived). 3. Rank lines by (high-execute, low-kill) — those are 'covered but untested.' 4. Cluster nearby surviving mutants into 'behaviors' using AST proximity. 5. For each behavior, prompt the LLM for a plain-English description of what the test would assert, using the surrounding code as context. 6. Emit a prioritized markdown report grouped by file, ordered by mutant survival count.

Description

Consumes a coverage report plus a mutation-testing run and emits a ranked list of code paths that are nominally 'covered' but have weak or no assertions. Each gap entry includes the file, the exact uncovered behavior, and a suggested test case description (not generated code — just the description, to avoid overfitting).

Install this skill

A Claude skill is a skill.md file with YAML frontmatter and a markdown body. Drop the file into your tool of choice — or pick a different format if you use Cursor, Windsurf, Copilot, or something else.

Download skill.md
mkdir -p ~/.claude/skills/test-gap-finder \
  && curl -L https://aidiveforge.com/skill/test-gap-finder.skill-md \
       -o ~/.claude/skills/test-gap-finder/skill.md

Save to ~/.claude/skills/test-gap-finder/skill.md

Recommended Use

Tools and workflow packs this skill pairs well with. Forge picks are auto-generated from category + capability signals; Community picks are added by people who've used the pairing.