quality-coverage-report

Generate HTML and terminal coverage reports for Python pytest runs.

18|5|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/mvillmow/ml-odyssey --skill quality-coverage-report
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quality-coverage-report
Source: https://github.com/mvillmow/ml-odyssey/tree/main/.claude/skills/quality-coverage-report
Command: npx skills add https://github.com/mvillmow/ml-odyssey --skill quality-coverage-report

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, pytest-cov.

What problem does it solve? This Skill helps developers identify gaps in their test suites, ensuring critical code paths are thoroughly tested and improving overall software reliability. It automates the generation and analysis of coverage reports, saving manual review time.

Core Features & Use Cases:

  • Coverage Generation: Creates detailed reports for Python (and future Mojo) code, highlighting executed and missing lines/branches.
  • Coverage Goals: Defines and tracks against minimum and target coverage percentages, providing clear objectives for test improvement.
  • Use Case: After running your unit tests, use this skill to generate an HTML coverage report. Quickly see which parts of your code are not being tested, then write new tests to cover those areas, ensuring comprehensive code validation.

Quick Start: Use the quality-coverage-report skill to generate a test coverage report for the Python source code in the 'src' directory.

Frequently Asked Questions about quality-coverage-report

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

FAQPage Schema
How do I identify untested code in my Python project?

Test coverage reports identify untested code by highlighting which lines and branches your tests execute. Run pytest with pytest-cov, then generate an HTML or terminal report to see exactly which code paths lack test coverage, guiding you to write tests for those gaps.

How do I generate a test coverage report with pytest?

Use pytest-cov to measure code coverage while running tests, then generate detailed reports showing line and branch coverage. This Skill automates report generation for Python projects, displaying executed versus missing lines so you can target improvements before pull requests.

Can I enforce minimum coverage thresholds in my CI pipeline?

Yes. Coverage reports can define and enforce minimum and target coverage percentages, allowing you to set quality gates in CI pipelines. This ensures your test suite maintains the coverage level your team requires before merging code.

What's the difference between line coverage and branch coverage?

Line coverage tracks whether each line executed; branch coverage tracks whether each conditional path (if/else, loops) executed. This Skill reports both metrics so you see complete coverage gaps—some lines may run but not all decision branches.

Do I need to modify my tests to use coverage reporting?

No. Coverage reporting works alongside your existing pytest test suite without code changes. After running tests with pytest-cov, this Skill generates reports that analyze your test execution without requiring test rewrites.