pytest-cover
Pytest plugin for measuring coverage. Forked from `pytest-cov`.
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-coveruv
uv add pytest-coverpoetry
poetry add pytest-coverInstalling 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
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
cov-corecov-core provides the internal plugin…
permissive · top 15,000 on PyPI
pytest-covA pytest plugin that measures code coverage…
permissive · top 1,000 on PyPI
coverage_enable_subprocessInstalls a .pth file that automatically enables…
permissive · top 15,000 on PyPI
python-coverallsUploads Python code coverage reports to…
permissive · top 15,000 on PyPI
covdefaultsA coverage plugin that automatically applies…
permissive · top 15,000 on PyPI
pytest-integrationA pytest plugin that organizes tests into unit,…
permissive · top 15,000 on PyPI
pytest-parallelA pytest plugin that runs tests in parallel…
permissive · top 15,000 on PyPI
django-coverage-pluginA coverage.py plugin that measures test…
permissive · top 5,000 on PyPI
diff-coverCompares test coverage reports against git…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI