test-coverage-improver

Analyze Python coverage reports and generate test ideas for low-coverage modules.

Updated Dec 6, 2016
One-click install
npx skills add https://github.com/majunbao/learn --skill test-coverage-improver-majunbao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-coverage-improver
Source: https://github.com/majunbao/learn/tree/main/openai-agents-python_tags/openai-agents-python-0.14.6/.agents/skills/test-coverage-improver
Command: npx skills add https://github.com/majunbao/learn --skill test-coverage-improver-majunbao

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps engineering teams locate missing test coverage and plan targeted test additions to reduce regression risk.

Core Features & Use Cases

  • Automated coverage analysis that consumes existing reports and surfaces the lowest-coverage areas.
  • Prioritized test ideas for critical modules and recently changed code to maximize impact.
  • Approval-driven workflow that drafts concrete test concepts and requires user sign-off before implementing changes.

Quick Start

From the repository root, run make coverage to regenerate the report, review the results, and confirm proposed tests before implementing them.

Frequently Asked Questions about test-coverage-improver

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

FAQPage Schema
How do I identify test coverage gaps in a Python project?

To identify test coverage gaps in a Python project, you can analyze existing coverage reports to surface the lowest-coverage modules and branches. This helps engineering teams locate missing tests and plan targeted additions to reduce regression risk.

What is the best way to generate test ideas for low-coverage code?

The best way to generate test ideas for low-coverage code is through automated coverage analysis that prioritizes critical modules and recently changed code. This approach drafts concrete test scenarios and awaits your approval before implementing any actual code changes.

How do I propose targeted tests for recently changed Python code?

You propose targeted tests for recently changed Python code by consuming coverage reports and prioritizing test ideas for those specific areas. This maximizes impact by focusing on new modifications and drafting actionable test concepts for user sign-off.

Does the test coverage analysis workflow require manual approval before changing code?

Yes, the test coverage analysis workflow requires manual approval before changing code. It operates on an approval-driven model where it documents findings and drafts test scenarios, ensuring user sign-off is obtained before any implementation begins.

How do I analyze coverage reports to reduce regression risk in my codebase?

You analyze coverage reports to reduce regression risk by running automated coverage analysis from the repository root using make coverage. Reviewing the regenerated report surfaces missing coverage areas and proposes targeted test additions to minimize future regressions.