Skip to main content

Code coverage measurement for Python

Project description

Code coverage testing for Python.

Stand with Ukraine
License Python versions supported Package stability
Test suite status Quality check status Documentation Coverage reports
PyPI status Weekly PyPI downloads Kit format Packaging status
Github stars Github forks Contributors
Core Infrastructure Initiative: passing OpenSSF Scorecard Snyk package health
Tidelift Sponsor me on GitHub on Twitter nedbat on Twitter nedbat on Mastodon measures code coverage, typically during test execution. It uses the code analysis tools and tracing hooks provided in the Python standard library to determine which lines are executable, and which have been executed. runs on these versions of Python:

  • CPython 3.7 through 3.12.0a3

  • PyPy3 7.3.9.

Documentation is on Read the Docs. Code repository and issue tracker are on GitHub.

New in 7.x: improved data combining; report --format=.

New in 6.x: dropped support for Python 2.7, 3.5, and 3.6; write data on SIGTERM; added support for 3.10 match/case statements.

For Enterprise


Available as part of the Tidelift Subscription. Coverage and thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use. If you want the flexibility of open source and the confidence of commercial-grade software, this is for you. Learn more.

Getting Started

See the Quick Start section of the docs.

Change history

The complete history of changes is on the change history page.

Code of Conduct

Everyone participating in the project is expected to treat other people with respect and to follow the guidelines articulated in the Python Community Code of Conduct.


See the Contributing section of the docs.


To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.


Licensed under the Apache 2.0 License. For details, see NOTICE.txt.

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coverage-7.0.0.tar.gz (780.5 kB view hashes)

Uploaded source

Built Distributions

coverage-7.0.0-pp36.pp37.pp38-none-any.whl (180.4 kB view hashes)

Uploaded pp36 pp37 pp38

coverage-7.0.0-cp311-cp311-win_amd64.whl (191.3 kB view hashes)

Uploaded cp311

coverage-7.0.0-cp311-cp311-win32.whl (190.3 kB view hashes)

Uploaded cp311

coverage-7.0.0-cp310-cp310-win_amd64.whl (191.2 kB view hashes)

Uploaded cp310

coverage-7.0.0-cp310-cp310-win32.whl (190.3 kB view hashes)

Uploaded cp310

coverage-7.0.0-cp39-cp39-win_amd64.whl (191.3 kB view hashes)

Uploaded cp39

coverage-7.0.0-cp39-cp39-win32.whl (190.3 kB view hashes)

Uploaded cp39

coverage-7.0.0-cp38-cp38-win_amd64.whl (191.2 kB view hashes)

Uploaded cp38

coverage-7.0.0-cp38-cp38-win32.whl (190.3 kB view hashes)

Uploaded cp38

coverage-7.0.0-cp37-cp37m-win_amd64.whl (191.2 kB view hashes)

Uploaded cp37

coverage-7.0.0-cp37-cp37m-win32.whl (190.4 kB view hashes)

Uploaded cp37

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page