pytest-cov is a plugin for pytest that helps you collect and report code coverage as part of your test runs. It’s useful for understanding how much of your codebase is exercised by your automated tests.
Project status
- Actively maintained: The repo has recent activity (last upstream push 2026-04-24) and the latest tagged updates include pytest-cov 7.1.0 on 2026-03-21.
- Updates cadence: After several updates in 2025, there is a quieter period, then another update in early 2026 (7.1.0), with the latest upstream push about 5 months ago relative to 2026-08-20, suggesting ongoing but not rapid iteration.
AI summary generated
Recent updates
v7.1.0
pytest-cov 7.1.0 focuses on making total coverage calculation consistent across reporting modes and improving sqlite3 ResourceWarning suppression. It also refactors the reporting internals, updates docs and CI tooling, and bumps the package version.
v7.0.0
v7.0.0 is a major internal cleanup of pytest-cov, but the published release notes do not describe the changes. The diff shows removal of the legacy subprocess bootstrap path, simplification of xdist and session compatibility code, and an update to newer pytest and coverage test targets.
v6.3.0
v6.3.0 adds Markdown coverage reporting to pytest-cov, including both standard write mode and an append mode. The release is otherwise mostly documentation, test, and CI maintenance, with version bumps across packaging and docs metadata. The code also adds markdown-specific destination handling and validation that were not called out in the release notes.
Featuresv6.2.1
This is a small maintenance release that bumps pytest-cov to 6.2.1, suppresses two noisy coverage warnings, and cleans up packaging metadata. The code also tightens runtime dependency requirements, most notably increasing the minimum pytest version, which is not fully called out in the release notes.
v6.2.0
pytest-cov 6.2.0 mainly hardens warning handling for pytest 8.4 and strict `filterwarnings=error` setups, adding default filters for coverage-related warnings before the test loop runs. The release also refreshes the CI matrix and project metadata, but it does not introduce obvious public API changes.
v6.1.1
This patch release fixes a coverage-context regression in pytest-cov 6.1.0, specifically when `--cov-context=test` is used alongside the `no_cover` marker. Internally, it adds controller state tracking so context switching is skipped while coverage is paused or disabled.
v6.1.0
v6.1.0 is a reporting-focused release that improves terminal coverage header rendering, fixes `--cov-precision` handling in term reports, and removes the obsolete `CovFailUnderWarning`. The diff also refactors coverage controller initialization and updates CI and docs metadata.
Featuresv6.0.0
pytest-cov 6.0.0 aligns coverage threshold checking with coverage.py's precision rules, adds a `--cov-precision` override, and drops Python 3.8 support. The release also refreshes documentation and CI tooling, while tightening behavior around `dynamic_context=test_function` in xdist and non-xdist runs.
BreakingFeaturesv5.0.0
pytest-cov 5.0.0 is a major release that modernizes internal path and I/O handling, updates CI tooling, and bumps the package version. The published release notes are effectively empty, so the practical change set comes from the code diff, including a removed compatibility shim and a shifted test support matrix.
v4.1.0
The release notes content for v4.1.0 is not included in the provided prompt, so specific developer-impacting changes cannot be extracted or verified. To produce an accurate upgrade guide, please paste the full GitHub release notes text (or links to them).