Code coverage testing 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 many versions of Python:
- CPython 2.7.
- CPython 3.5 through alpha 3.8.
- PyPy2 7.0 and PyPy3 7.0.
- Jython 2.7.1, though not for reporting.
- IronPython 2.7.7, though not for reporting.
New in 5.0: SQLite data storage, contexts, dropped support for Python 2.6, 3.3 and 3.4.
|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.|
See the Quick Start section of the docs.
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.