skillfed

pytest-cover

Pytest plugin for measuring coverage. Forked from `pytest-cov`.

pytest-cover v3.0.0 415.8K downloads/30d#6,822 on PyPI5
Permissive license MIT Abandoned released

What it is and what it does

pytest-cover is a pytest plugin that integrates code coverage measurement into your test runs. It wraps the coverage.py library to let you measure which lines of code are executed during testing and generate coverage reports in multiple formats. The plugin was originally forked from pytest-cov to add features like automatic source detection from .coveragerc and a minimum coverage threshold option.

However, pytest-cover has been merged back into pytest-cov as of version 2.0, and this package is no longer maintained. The repository was archived in 2018, with the last release in August 2015. Installing this package now means using outdated code that will not receive bug fixes or compatibility updates for modern Python versions.

Use it for:

  • Measure test coverage in projects still using Python 2.6–3.4 where pytest-cov 2.0 was the active version.
  • Generate HTML or terminal coverage reports during pytest runs without separate coverage commands.
  • Set minimum coverage thresholds and fail the test suite if coverage drops below a target percentage.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

pytest-cover is a pytest plugin for measuring code coverage, but it has been merged into pytest-cov and is no longer maintained as a separate project.

No. This package is abandoned and has been superseded by pytest-cov. The last release was in 2015, the repository was archived in 2018, and the project explicitly states it has been merged into pytest-cov. Install pytest-cov instead for active maintenance, modern Python support, and ongoing bug fixes.

Install

pytest-cover on PyPI

pip

pip install pytest-cover

uv

uv add pytest-cover

poetry

poetry add pytest-cover

Installing pytest-cover

Before you install

Installation is low-friction, but the package is abandoned—last release was 2015-08-01 and the repository was archived in 2018. The project has been merged into pytest-cov, making this package obsolete.

License in practice

Licensed under MIT (permissive), so there are no licensing restrictions on use or modification.

Quickstart

pip install pytest-cover

# Then run pytest with coverage:
pytest --cov=mymodule --cov-report=html

This package is abandoned and merged into pytest-cov; use pytest-cov instead for active maintenance and modern Python support.

Verify before relying

  • Whether pytest-cover remains compatible with modern pytest and Python versions beyond those listed in classifiers (2.6–3.4).
  • Whether the single runtime dependency pytest-cov is pinned to a specific version or accepts modern releases.

Package facts

License MIT (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — pytest-cov
Maintenance abandoned — 4,031 days since the last release
Last repo commit (repository archived)
First released
Downloads 415,808/month — #6,822 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pytest_cover-3.0.0-py2.py3-none-any.whl

Keywords: cover, coverage, pytest, py.test, distributed, parallel

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: TestingTopic :: Utilities

Tags

pytest coverage plugincode coverage measurementpytest-cov alternativetest coverage reportingcoverage integration pytest
abandonedsuperseded-by-pytest-cov

More Utilities packages