pytest-dev/pytest-cov
Coverage plugin for pytest. observed · 2026-08-28
Health v2 · maintenance only
68/100
- Activity 79
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4521
- days_rel: n/a
- days_push: 131
- n_releases_24m: 0
Adoption not part of the score
2056 stars · 243 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
pytest-cov is a pytest plugin that adds code coverage measurement to pytest runs, built on top of the coverage package. It provides extras like automatic .coverage file handling, coverage contexts, and pytest-xdist distributed testing support.
Use cases
- measure code coverage of pytest test suites
- get coverage reports when running tests with pytest-xdist
- track which tests cover which lines with coverage contexts
- combine coverage data from parallel or subprocess test runs
- generate coverage reports as part of CI pipelines
When to choose
- you use pytest and want coverage without manually running coverage run -m pytest
- you need coverage across distributed or parallel test execution with pytest-xdist
- you want automatic cleanup and merging of .coverage data files
- you want consistent sys.path behavior compared to raw coverage run
When to avoid
- you don't use pytest as your test runner
- you need coverage for non-Python code
- you prefer configuring coverage.py directly without pytest integration
Facets
plugin · maturity stable
testing developer-tools testing developer-tools python cli cross-platform pytest-plugin code-coverage coverage pytest-xdist subprocess-coverage python
2 sources
- readme: https://github.com/pytest-dev/pytest-cov · fetched 2026-08-28 · f2dbf3d2b1b1
- registry_pypi: https://pypi.org/pypi/pytest-cov/json · fetched 2026-08-29 · 1fb601b52cf2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pytest-dev/pytest-cov | main | 68 |
For agents
markdown · JSON · MCP: product_card(name="pytest-dev/pytest-cov")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem