SkillMITv1.0.0neo-pragnya-mcp

Test gap synthesis

Find the tests a codebase is missing and write skeletons for them from evidence: partly taken branches in a coverage report, failing cases in JUnit XML and API operations whose handlers changed, each test citing the line it answers and failing until it's written. Use for test gaps, missing tests, improving coverage, branch coverage, regression tests after a failure or contract tests for changed endpoints.

At a glance

Kind
Skill · Ananke skill
Reference
neo-pragnya-mcp/test-gap-synthesis · ananke://skill/neo-pragnya-mcp/test-gap-synthesis@1.0.0
Files
1 · 1.6 KB
How it's used
Skills load on demand: the agent sees this skill's name and description, and opens SKILL.md (and any bundled references or scripts) when a task matches.

Where it fits

Task
Generate API testsPlan testsWork with GitWrite tests
Lifecycle phase
Testing
Role
QA engineer
Domain
APIs
Platform
Ananke PlexusClaude CodeGitHub Copilot
Needs
Nothing (text only)

Facets suggested from the item's own text and tags, not yet reviewed. Facets say where an item is relevant, not that it will run in your setup. How facets work

Checked by Dex

Verified, not self-reported: dex-trove 0.3.16 installed this item into each layout and checked that the tool can load it. Dex collects no download or usage data.

  • Claude Code ✓ loads
  • GitHub Copilot ✓ loads

Documentation

View upstream ↗

Uses Ananke Plexus (ananke triage test-gaps). Generated tests are suggestions: each fails until a person writes the assertion, so a gap is never reported as closed.

Steps

  1. Produce the evidence you have:

    • branch coverage: pytest --cov --cov-branch --cov-report xml;
    • failures: pytest --junitxml junit.xml (or your CI’s JUnit report);
    • contract changes: a base revision, for example main.
  2. Run:

    uvx --from ananke-plexus ananke triage test-gaps --coverage coverage.xml --junit junit.xml --base main \
      --write tests/test_gaps.py
  3. Open tests/test_gaps.py. Each test names its evidence (app/pricing.py:42), why it exists (the condition whose other branch never ran, the failure message, the contract finding) and its target.

  4. Write the assertion for each, starting with observed failures, then changed contracts, then branches in code you’re changing. Delete a skeleton only with a reason in the review.

  5. Re-run coverage and the command: the gaps you closed disappear.

Rules

  • Never replace pytest.fail(...) with pass to make a skeleton green.
  • A branch that can’t be reached is a finding about the code, not a test to fake.