Skip to main content

Code coverage measurement for Python

Project description

Code coverage testing for Python.

License Python versions supported Package stability
Build status Windows build status Documentation Coverage!
PyPI status Kit format Packaging status
Github stars Github forks Contributors
Tidelift nedbat on Twitter

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.

Tidelift Professional support for coverage.py is available as part of the Tidelift Subscription. Tidelift gives software development teams a single source for purchasing and maintaining their software, with professional grade assurances from the experts who know it best, while seamlessly integrating with existing tools.

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.

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

New in 5.0: SQLite data storage, contexts, dropped support for Python 2.6, 3.3 and 3.4.

Getting Started

See the Quick Start section of the docs.

Contributing

See the Contributing section of the docs.

Security

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

License

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

Release history Release notifications

Download files

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

Files for coverage, version 5.0a6
Filename, size & hash File type Python version Upload date
coverage-5.0a6-cp27-cp27m-macosx_10_12_x86_64.whl (190.9 kB) View hashes Wheel cp27
coverage-5.0a6-cp27-cp27m-macosx_10_13_intel.whl (196.0 kB) View hashes Wheel cp27
coverage-5.0a6-cp27-cp27m-manylinux1_i686.whl (210.6 kB) View hashes Wheel cp27
coverage-5.0a6-cp27-cp27m-manylinux1_x86_64.whl (212.0 kB) View hashes Wheel cp27
coverage-5.0a6-cp27-cp27mu-manylinux1_i686.whl (210.6 kB) View hashes Wheel cp27
coverage-5.0a6-cp27-cp27mu-manylinux1_x86_64.whl (212.0 kB) View hashes Wheel cp27
coverage-5.0a6-cp27-cp27m-win32.whl (190.9 kB) View hashes Wheel cp27
coverage-5.0a6-cp27-cp27m-win_amd64.whl (191.2 kB) View hashes Wheel cp27
coverage-5.0a6-cp34-cp34m-manylinux1_i686.whl (212.3 kB) View hashes Wheel cp34
coverage-5.0a6-cp34-cp34m-manylinux1_x86_64.whl (214.9 kB) View hashes Wheel cp34
coverage-5.0a6-cp35-cp35m-macosx_10_12_x86_64.whl (191.0 kB) View hashes Wheel cp35
coverage-5.0a6-cp35-cp35m-manylinux1_i686.whl (212.5 kB) View hashes Wheel cp35
coverage-5.0a6-cp35-cp35m-manylinux1_x86_64.whl (215.1 kB) View hashes Wheel cp35
coverage-5.0a6-cp35-cp35m-win32.whl (192.4 kB) View hashes Wheel cp35
coverage-5.0a6-cp35-cp35m-win_amd64.whl (193.5 kB) View hashes Wheel cp35
coverage-5.0a6-cp36-cp36m-macosx_10_13_x86_64.whl (191.0 kB) View hashes Wheel cp36
coverage-5.0a6-cp36-cp36m-manylinux1_i686.whl (212.6 kB) View hashes Wheel cp36
coverage-5.0a6-cp36-cp36m-manylinux1_x86_64.whl (215.1 kB) View hashes Wheel cp36
coverage-5.0a6-cp36-cp36m-win32.whl (192.4 kB) View hashes Wheel cp36
coverage-5.0a6-cp36-cp36m-win_amd64.whl (193.6 kB) View hashes Wheel cp36
coverage-5.0a6-cp37-cp37m-macosx_10_13_x86_64.whl (191.0 kB) View hashes Wheel cp37
coverage-5.0a6-cp37-cp37m-manylinux1_i686.whl (212.5 kB) View hashes Wheel cp37
coverage-5.0a6-cp37-cp37m-manylinux1_x86_64.whl (215.1 kB) View hashes Wheel cp37
coverage-5.0a6-cp37-cp37m-win32.whl (192.4 kB) View hashes Wheel cp37
coverage-5.0a6-cp37-cp37m-win_amd64.whl (193.6 kB) View hashes Wheel cp37
coverage-5.0a6-cp38-cp38-macosx_10_13_x86_64.whl (191.2 kB) View hashes Wheel cp38
coverage-5.0a6.tar.gz (415.4 kB) View hashes Source None
coverage-5.0a6.win32-py2.7.exe (501.3 kB) View hashes Windows Installer 2.7
coverage-5.0a6.win32-py3.5.exe (764.2 kB) View hashes Windows Installer 3.5
coverage-5.0a6.win32-py3.6.exe (764.9 kB) View hashes Windows Installer 3.6
coverage-5.0a6.win32-py3.7.exe (764.9 kB) View hashes Windows Installer 3.7
coverage-5.0a6.win-amd64-py2.7.exe (537.4 kB) View hashes Windows Installer 2.7
coverage-5.0a6.win-amd64-py3.5.exe (903.1 kB) View hashes Windows Installer 3.5
coverage-5.0a6.win-amd64-py3.6.exe (903.8 kB) View hashes Windows Installer 3.6
coverage-5.0a6.win-amd64-py3.7.exe (903.8 kB) View hashes Windows Installer 3.7

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page