Code coverage measurement for Python.
Coverage.py 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.
Coverage.py runs on these versions of Python:
- Python 3.11 through 3.15, including free-threading.
- PyPy3 version 3.11.
Documentation is on Read the Docs. Code repository and issue tracker are on GitHub.
Looking to run coverage on your test suite? See the Quick Start section
of the docs.
The complete history of changes is on the change history page.
Everyone participating in the coverage.py project is expected to treat other people with respect and to follow the guidelines articulated in the Python Community Code of Conduct.
Found a bug? Want to help improve the code or documentation? 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.

