Test Gap Analyzer

🌐Community
by rysweet · vlatest · Repository

Identifies missing test cases and potential coverage gaps in software projects based on requirements and code analysis.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add test-gap-analyzer npx -- -y @trustedskills/test-gap-analyzer
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "test-gap-analyzer": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/test-gap-analyzer"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The Test Gap Analyzer automatically identifies missing test cases and potential coverage gaps within software projects. It analyzes codebases to find untested functions, areas with low test coverage, and missing edge case tests. The skill then generates prioritized suggestions for new tests, aiming to align with amplihack's testing pyramid (60% unit, 30% integration, 10% E2E).

When to use it

  • Code review: Before merging pull requests to identify potential test gaps.
  • Test planning: To prioritize which areas of the codebase should be tested next based on risk and impact.
  • Coverage improvement: Systematically target low-coverage areas within a project.
  • Legacy code: Incrementally improve test coverage in older, less-tested codebases.

Key capabilities

  • Code Analysis: Scans Python, JavaScript, TypeScript, and Go codebases to identify functions, methods, classes, dependencies, unused parameters, and dead code paths.
  • Coverage Detection: Parses .coverage files (for Python) to determine existing test coverage.
  • Gap Identification: Categorizes gaps as "Untested Functions/Methods," "Low Coverage Areas," "Missing Edge Cases," "Integration Gaps," or "Error Path Coverage."
  • Test Suggestion Generation: Provides specific test case descriptions, code templates, and expected behaviors for identified gaps.
  • Prioritization: Organizes suggested tests by risk impact, adherence to the testing pyramid, effort required, and dependency relationships.

Example prompts

  • "Analyze this codebase for missing test cases."
  • "Show me areas with low test coverage in my project."
  • "What edge cases are not being tested in function X?"

Tips & gotchas

  • The skill relies on existing .coverage files for Python projects to accurately assess current coverage. Ensure these files are generated during your testing process.
  • The analysis focuses on public and private functions within the specified codebases.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
rysweet
Installs
61

🌐 Community

Passed automated security scans.