# coveragepy/coveragepy

The code coverage tool for Python

Repository: https://github.com/coveragepy/coveragepy
Canonical: https://ross.abutalabs.com/products/coveragepy
Homepage: https://coverage.readthedocs.io
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2026-08-25T13:01:37+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 84, longevity 100
- inputs: {"age_days": 2993, "days_push": 8, "days_rel": 27, "gap_med": 0.0, "n_releases_24m": 141}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3407, forks 519 (observed 2026-08-28T04:08:03.059470+00:00)

## What it is
Coverage.py is the standard code coverage measurement tool for Python, tracking which lines of code execute during test runs. It uses Python's standard library tracing hooks and supports Python 3.10-3.15 and PyPy3.

## Use cases
- measure code coverage of python tests
- find untested lines in my python codebase
- generate coverage reports for ci
- check test coverage percentage
- run coverage with pytest
- measure branch coverage in python

## When to choose
- you need the de facto standard coverage tool for Python
- you want line, branch, and statement coverage with HTML/XML/JSON reports
- you need support for the latest Python versions including free-threading and PyPy

## When to avoid
- you are measuring coverage for a non-Python language
- you need runtime performance profiling rather than coverage measurement

## Facets
- artifact type: library
- maturity: stable
- function: testing, developer-tools
- domain: testing, developer-tools
- platform: python, cli, cross-platform
- tags: code-coverage, test-coverage, coverage-reporting, pytest-plugin, python

## Member repositories
- coveragepy/coveragepy (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:03.059470+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:38:33.638490+00:00, confidence not recorded.
  - readme: https://github.com/coveragepy/coveragepy (fetched 2026-08-28T04:08:03.059470+00:00, sha 2ca8305299d1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
