test-gap-analyzer

Analyze coverage reports and Python sources to detect untested functions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ribatshepo/cc-auto-orchestrate --skill test-gap-analyzer-ribatshepo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-gap-analyzer
Source: https://github.com/ribatshepo/cc-auto-orchestrate/tree/main/claude-code/skills/test-gap-analyzer
Command: npx skills add https://github.com/ribatshepo/cc-auto-orchestrate --skill test-gap-analyzer-ribatshepo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Analyzes Python projects to identify untested functions by comparing source code with coverage data, enabling teams to quickly close gaps with targeted tests.

Core Features & Use Cases

  • Gap detection: locate untested functions across Python sources.
  • Coverage mapping: align functions to coverage reports for precise risk assessment.
  • Test stub generation: create pytest/unittest skeletons for uncovered functions.
  • Prioritization: rank gaps by complexity, size, and risk to optimize effort.

Quick Start

Run gap_detector.py with a coverage.json and a source directory to generate a prioritized gaps report.

Frequently Asked Questions about test-gap-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find untested functions in my Python project using a coverage report?

To find untested functions in a Python project, compare your source files against coverage data to map execution gaps. This analysis highlights uncovered functions and returns a structured report detailing exactly where test coverage is missing.

Can I automatically generate pytest stubs for uncovered Python code?

Yes, you can automatically generate pytest stubs for uncovered Python code. After detecting untested functions from coverage reports, the tool creates test skeletons for critical gaps, allowing you to quickly close the coverage deficit.

Does the gap analyzer work with both pytest and bats test frameworks?

Yes, the gap analyzer works with both pytest and bats test frameworks. It applies to Python projects using either framework to detect untested functions, map coverage data, and prioritize gaps by complexity, size, and risk.

What is the best way to prioritize test coverage gaps by risk?

The best way to prioritize test coverage gaps by risk is to rank untested functions based on code complexity and size. This approach optimizes testing effort by targeting critical gaps first, generating a prioritized report for your Python sources.

What input format do I need to analyze Python test coverage gaps?

To analyze Python test coverage gaps, you need a coverage.json file and a source directory. Running the gap detection script with these inputs aligns your source code with coverage data to generate a prioritized gaps report.