Skip to main content

Code coverage measurement for Python

Project description

Code coverage testing for Python.

License Python versions supported Package stability Documentation
Build status Windows build status Coverage!
PyPI status Kit format Packaging status
Tidelift Say thanks :)

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.6, 2.7 and 3.3 through pre-alpha 3.8.
  • PyPy2 5.10 and PyPy3 5.10.
  • 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 Bitbucket, with a mirrored repository on GitHub.

New in 4.5: Configurator plug-ins.

New in 4.4: Suppressable warnings, continuous coverage measurement.

New in 4.3: HTML --skip-covered, sys.excepthook support, tox.ini support.

New in 4.2: better support for multiprocessing and combining data.

New in 4.1: much-improved branch coverage.

New in 4.0: --concurrency, plugins for non-Python files, setup.cfg support, –skip-covered, HTML filtering, and more than 50 issues closed.

Getting Started

See the Quick Start section of the docs.

Contributing

See the Contributing section of the docs.

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
coverage-4.5.2-cp26-cp26m-macosx_10_12_x86_64.whl (180.7 kB) Copy SHA256 hash SHA256 Wheel cp26 Nov 12, 2018
coverage-4.5.2-cp27-cp27m-macosx_10_12_x86_64.whl (180.8 kB) Copy SHA256 hash SHA256 Wheel cp27 Nov 12, 2018
coverage-4.5.2-cp27-cp27m-macosx_10_13_intel.whl (185.8 kB) Copy SHA256 hash SHA256 Wheel cp27 Nov 12, 2018
coverage-4.5.2-cp27-cp27m-manylinux1_i686.whl (200.6 kB) Copy SHA256 hash SHA256 Wheel cp27 Nov 12, 2018
coverage-4.5.2-cp27-cp27m-manylinux1_x86_64.whl (201.9 kB) Copy SHA256 hash SHA256 Wheel cp27 Nov 12, 2018
coverage-4.5.2-cp27-cp27mu-manylinux1_i686.whl (200.6 kB) Copy SHA256 hash SHA256 Wheel cp27 Nov 12, 2018
coverage-4.5.2-cp27-cp27mu-manylinux1_x86_64.whl (201.9 kB) Copy SHA256 hash SHA256 Wheel cp27 Nov 12, 2018
coverage-4.5.2-cp27-cp27m-win32.whl (180.8 kB) Copy SHA256 hash SHA256 Wheel cp27 Nov 12, 2018
coverage-4.5.2-cp27-cp27m-win_amd64.whl (181.1 kB) Copy SHA256 hash SHA256 Wheel cp27 Nov 12, 2018
coverage-4.5.2-cp33-cp33m-macosx_10_10_x86_64.whl (180.9 kB) Copy SHA256 hash SHA256 Wheel cp33 Nov 12, 2018
coverage-4.5.2-cp34-cp34m-macosx_10_12_x86_64.whl (180.8 kB) Copy SHA256 hash SHA256 Wheel cp34 Nov 12, 2018
coverage-4.5.2-cp34-cp34m-manylinux1_i686.whl (202.2 kB) Copy SHA256 hash SHA256 Wheel cp34 Nov 12, 2018
coverage-4.5.2-cp34-cp34m-manylinux1_x86_64.whl (204.8 kB) Copy SHA256 hash SHA256 Wheel cp34 Nov 12, 2018
coverage-4.5.2-cp34-cp34m-win32.whl (180.9 kB) Copy SHA256 hash SHA256 Wheel cp34 Nov 12, 2018
coverage-4.5.2-cp34-cp34m-win_amd64.whl (181.0 kB) Copy SHA256 hash SHA256 Wheel cp34 Nov 12, 2018
coverage-4.5.2-cp35-cp35m-macosx_10_12_x86_64.whl (180.8 kB) Copy SHA256 hash SHA256 Wheel cp35 Nov 12, 2018
coverage-4.5.2-cp35-cp35m-manylinux1_i686.whl (202.5 kB) Copy SHA256 hash SHA256 Wheel cp35 Nov 12, 2018
coverage-4.5.2-cp35-cp35m-manylinux1_x86_64.whl (205.1 kB) Copy SHA256 hash SHA256 Wheel cp35 Nov 12, 2018
coverage-4.5.2-cp35-cp35m-win32.whl (182.3 kB) Copy SHA256 hash SHA256 Wheel cp35 Nov 12, 2018
coverage-4.5.2-cp35-cp35m-win_amd64.whl (183.5 kB) Copy SHA256 hash SHA256 Wheel cp35 Nov 12, 2018
coverage-4.5.2-cp36-cp36m-macosx_10_13_x86_64.whl (180.8 kB) Copy SHA256 hash SHA256 Wheel cp36 Nov 12, 2018
coverage-4.5.2-cp36-cp36m-manylinux1_i686.whl (202.5 kB) Copy SHA256 hash SHA256 Wheel cp36 Nov 12, 2018
coverage-4.5.2-cp36-cp36m-manylinux1_x86_64.whl (205.1 kB) Copy SHA256 hash SHA256 Wheel cp36 Nov 12, 2018
coverage-4.5.2-cp36-cp36m-win32.whl (182.3 kB) Copy SHA256 hash SHA256 Wheel cp36 Nov 12, 2018
coverage-4.5.2-cp36-cp36m-win_amd64.whl (183.5 kB) Copy SHA256 hash SHA256 Wheel cp36 Nov 12, 2018
coverage-4.5.2-cp37-cp37m-macosx_10_13_x86_64.whl (180.8 kB) Copy SHA256 hash SHA256 Wheel cp37 Nov 12, 2018
coverage-4.5.2-cp37-cp37m-manylinux1_i686.whl (202.4 kB) Copy SHA256 hash SHA256 Wheel cp37 Nov 12, 2018
coverage-4.5.2-cp37-cp37m-manylinux1_x86_64.whl (205.0 kB) Copy SHA256 hash SHA256 Wheel cp37 Nov 12, 2018
coverage-4.5.2-cp37-cp37m-win32.whl (182.3 kB) Copy SHA256 hash SHA256 Wheel cp37 Nov 12, 2018
coverage-4.5.2-cp37-cp37m-win_amd64.whl (183.5 kB) Copy SHA256 hash SHA256 Wheel cp37 Nov 12, 2018
coverage-4.5.2.tar.gz (384.8 kB) Copy SHA256 hash SHA256 Source None Nov 12, 2018
coverage-4.5.2.win32-py2.7.exe (487.5 kB) Copy SHA256 hash SHA256 Windows Installer 2.7 Nov 12, 2018
coverage-4.5.2.win32-py3.4.exe (482.4 kB) Copy SHA256 hash SHA256 Windows Installer 3.4 Nov 12, 2018
coverage-4.5.2.win32-py3.5.exe (751.1 kB) Copy SHA256 hash SHA256 Windows Installer 3.5 Nov 12, 2018
coverage-4.5.2.win32-py3.6.exe (751.1 kB) Copy SHA256 hash SHA256 Windows Installer 3.6 Nov 12, 2018
coverage-4.5.2.win32-py3.7.exe (751.1 kB) Copy SHA256 hash SHA256 Windows Installer 3.7 Nov 12, 2018
coverage-4.5.2.win-amd64-py2.7.exe (523.6 kB) Copy SHA256 hash SHA256 Windows Installer 2.7 Nov 12, 2018
coverage-4.5.2.win-amd64-py3.4.exe (522.0 kB) Copy SHA256 hash SHA256 Windows Installer 3.4 Nov 12, 2018
coverage-4.5.2.win-amd64-py3.5.exe (890.1 kB) Copy SHA256 hash SHA256 Windows Installer 3.5 Nov 12, 2018
coverage-4.5.2.win-amd64-py3.6.exe (890.1 kB) Copy SHA256 hash SHA256 Windows Installer 3.6 Nov 12, 2018
coverage-4.5.2.win-amd64-py3.7.exe (890.1 kB) Copy SHA256 hash SHA256 Windows Installer 3.7 Nov 12, 2018

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