--- id: pytest-cov version: "7.1.0" license: MIT license_treatment: permissive maintenance: active --- # pytest-cov — Pytest plugin for measuring coverage. License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install pytest-cov uv add pytest-cov poetry add pytest-cov ## Description ======== Overview ======== .. start-badges .. list-table:: :stub-columns: 1 * - docs - |docs| * - tests - |github-actions| * - package - |version| |conda-forge| |wheel| |supported-versions| |supported-implementations| |commits-since| .. |docs| image:: https://readthedocs.org/projects/pytest-cov/badge/?style=flat :target: https://readthedocs.org/projects/pytest-cov/ :alt: Documentation Status .. |github-actions| image:: https://github.com/pytest-dev/pytest-cov/actions/workflows/test.yml/badge.svg :alt: GitHub Actions Status :target: https://github.com/pytest-dev/pytest-cov/actions .. |version| image:: https://img.shields.io/pypi/v/pytest-cov.svg :alt: PyPI Package latest release :target: https://pypi.org/project/pytest-cov .. |conda-forge| image:: https://img.shields.io/conda/vn/conda-forge/pytest-cov.svg :target: https://anaconda.org/conda-forge/pytest-cov .. |wheel| image:: https://img.shields.io/pypi/wheel/pytest-cov.svg :alt: PyPI Wheel :target: https://pypi.org/project/pytest-cov .. |supported-versions| image:: https://img.shields.io/pypi/pyversions/pytest-cov.svg :alt: Supported versions... ## AI interpretation — verify before relying A pytest plugin that measures code coverage during test runs, automatically combining coverage data and supporting distributed testing with pytest-xdist. Verdict: Mature, well-maintained pytest plugin in the top 1000 PyPI packages with zero known vulnerabilities. Low install friction and permissive MIT licensing make it a straightforward choice for adding coverage measurement to test suites. Active development and broad Python version support (3.9–3.14) ensure compatibility. [View on SkillFed](https://skillfed.io/packages/pytest-cov) · [View on PyPI](https://pypi.org/project/pytest-cov/)