Back to Explore

pytest-dev/pytest-cov

GitHub
1 updates · last 90 days1 watchersOpen source

Last release: 2 months ago

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: GitHub source has a recent upstream push (2026-04-24), and there are continual updates including a fairly recent v7.1.0 (2026-03-21), indicating the project is still actively worked on.
  • Apparent update cadence: The timeline suggests updates roughly on a quarterly to semiannual rhythm in the recent period (example gaps: v6.2.1 in 2025-06-12, v7.0.0 in 2025-09-09, v7.1.0 in 2026-03-21).

AI summary generated 2 weeks ago

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v7.1.0

    2 months ago

    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

    8 months ago

    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

    8 months ago

    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.

    Features
  • v6.2.1

    11 months ago

    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

    11 months ago

    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

    4/5/2025

    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

    4/1/2025

    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.

    Features
  • v6.0.0

    10/29/2024

    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.

    BreakingFeatures
  • v5.0.0

    3/24/2024

    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

    5/24/2023

    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).