Skip to main content

Code coverage measurement for Python

Project description

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.6, 2.7 and 3.3 through 3.7.
  • 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

History Node

5.0a1

This version
History Node

4.5.1

History Node

4.5

History Node

4.4.2

History Node

4.4.1

History Node

4.4

History Node

4.4b1

History Node

4.3.4

History Node

4.3.3

History Node

4.3.2

History Node

4.3.1

History Node

4.3

History Node

4.2

History Node

4.2b1

History Node

4.1

History Node

4.1b3

History Node

4.1b2

History Node

4.1b1

History Node

4.0.3

History Node

4.0.2

History Node

4.0.1

History Node

4.0

History Node

4.0b3

History Node

4.0b2

History Node

4.0b1

History Node

4.0a6

History Node

4.0a5

History Node

4.0a4

History Node

4.0a3

History Node

4.0a2

History Node

4.0a1

History Node

3.7.1

History Node

3.7

History Node

3.6

History Node

3.6b3

History Node

3.6b2

History Node

3.6b1

History Node

3.5.3

History Node

3.5.2

History Node

3.5.2b1

History Node

3.5.1

History Node

3.5.1b1

History Node

3.5

History Node

3.5b1

History Node

3.4

History Node

3.4b2

History Node

3.4b1

History Node

3.3.1

History Node

3.3

History Node

3.2

History Node

3.2b4

History Node

3.2b3

History Node

3.2b2

History Node

3.2b1

History Node

3.1

History Node

3.1b1

History Node

3.0.1

History Node

3.0

History Node

3.0b3

History Node

2.85

History Node

2.80

History Node

2.78

History Node

2.77

History Node

2.76

History Node

2.75

History Node

2.8

History Node

2.6

History Node

2.5

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.1-cp26-cp26m-macosx_10_10_x86_64.whl (178.3 kB) Copy SHA256 hash SHA256 Wheel cp26 Feb 10, 2018
coverage-4.5.1-cp27-cp27m-macosx_10_12_intel.whl (183.6 kB) Copy SHA256 hash SHA256 Wheel cp27 Feb 10, 2018
coverage-4.5.1-cp27-cp27m-macosx_10_12_x86_64.whl (178.4 kB) Copy SHA256 hash SHA256 Wheel cp27 Feb 10, 2018
coverage-4.5.1-cp27-cp27m-manylinux1_i686.whl (198.3 kB) Copy SHA256 hash SHA256 Wheel cp27 Feb 10, 2018
coverage-4.5.1-cp27-cp27m-manylinux1_x86_64.whl (199.6 kB) Copy SHA256 hash SHA256 Wheel cp27 Feb 10, 2018
coverage-4.5.1-cp27-cp27mu-manylinux1_i686.whl (198.3 kB) Copy SHA256 hash SHA256 Wheel cp27 Feb 10, 2018
coverage-4.5.1-cp27-cp27mu-manylinux1_x86_64.whl (199.6 kB) Copy SHA256 hash SHA256 Wheel cp27 Feb 10, 2018
coverage-4.5.1-cp27-cp27m-win32.whl (178.6 kB) Copy SHA256 hash SHA256 Wheel cp27 Feb 10, 2018
coverage-4.5.1-cp27-cp27m-win_amd64.whl (178.8 kB) Copy SHA256 hash SHA256 Wheel cp27 Feb 10, 2018
coverage-4.5.1-cp33-cp33m-macosx_10_10_x86_64.whl (178.4 kB) Copy SHA256 hash SHA256 Wheel cp33 Feb 10, 2018
coverage-4.5.1-cp33-cp33m-manylinux1_i686.whl (198.4 kB) Copy SHA256 hash SHA256 Wheel cp33 Feb 10, 2018
coverage-4.5.1-cp33-cp33m-manylinux1_x86_64.whl (200.4 kB) Copy SHA256 hash SHA256 Wheel cp33 Feb 10, 2018
coverage-4.5.1-cp34-cp34m-macosx_10_12_x86_64.whl (178.4 kB) Copy SHA256 hash SHA256 Wheel cp34 Feb 10, 2018
coverage-4.5.1-cp34-cp34m-manylinux1_i686.whl (200.0 kB) Copy SHA256 hash SHA256 Wheel cp34 Feb 10, 2018
coverage-4.5.1-cp34-cp34m-manylinux1_x86_64.whl (202.5 kB) Copy SHA256 hash SHA256 Wheel cp34 Feb 10, 2018
coverage-4.5.1-cp34-cp34m-win32.whl (178.6 kB) Copy SHA256 hash SHA256 Wheel cp34 Feb 10, 2018
coverage-4.5.1-cp34-cp34m-win_amd64.whl (178.7 kB) Copy SHA256 hash SHA256 Wheel cp34 Feb 10, 2018
coverage-4.5.1-cp35-cp35m-macosx_10_12_x86_64.whl (178.4 kB) Copy SHA256 hash SHA256 Wheel cp35 Feb 10, 2018
coverage-4.5.1-cp35-cp35m-manylinux1_i686.whl (200.2 kB) Copy SHA256 hash SHA256 Wheel cp35 Feb 10, 2018
coverage-4.5.1-cp35-cp35m-manylinux1_x86_64.whl (202.8 kB) Copy SHA256 hash SHA256 Wheel cp35 Feb 10, 2018
coverage-4.5.1-cp35-cp35m-win32.whl (180.0 kB) Copy SHA256 hash SHA256 Wheel cp35 Feb 10, 2018
coverage-4.5.1-cp35-cp35m-win_amd64.whl (181.2 kB) Copy SHA256 hash SHA256 Wheel cp35 Feb 10, 2018
coverage-4.5.1-cp36-cp36m-macosx_10_12_x86_64.whl (178.4 kB) Copy SHA256 hash SHA256 Wheel cp36 Feb 10, 2018
coverage-4.5.1-cp36-cp36m-manylinux1_i686.whl (200.2 kB) Copy SHA256 hash SHA256 Wheel cp36 Feb 10, 2018
coverage-4.5.1-cp36-cp36m-manylinux1_x86_64.whl (202.8 kB) Copy SHA256 hash SHA256 Wheel cp36 Feb 10, 2018
coverage-4.5.1-cp36-cp36m-win32.whl (180.0 kB) Copy SHA256 hash SHA256 Wheel cp36 Feb 10, 2018
coverage-4.5.1-cp36-cp36m-win_amd64.whl (181.2 kB) Copy SHA256 hash SHA256 Wheel cp36 Feb 10, 2018
coverage-4.5.1.tar.gz (379.7 kB) Copy SHA256 hash SHA256 Source None Feb 10, 2018
coverage-4.5.1.win32-py2.7.exe (484.4 kB) Copy SHA256 hash SHA256 Windows Installer 2.7 Feb 10, 2018
coverage-4.5.1.win32-py3.4.exe (479.3 kB) Copy SHA256 hash SHA256 Windows Installer 3.4 Feb 10, 2018
coverage-4.5.1.win32-py3.5.exe (748.1 kB) Copy SHA256 hash SHA256 Windows Installer 3.5 Feb 10, 2018
coverage-4.5.1.win32-py3.6.exe (748.1 kB) Copy SHA256 hash SHA256 Windows Installer 3.6 Feb 10, 2018
coverage-4.5.1.win-amd64-py2.7.exe (520.6 kB) Copy SHA256 hash SHA256 Windows Installer 2.7 Feb 10, 2018
coverage-4.5.1.win-amd64-py3.4.exe (519.0 kB) Copy SHA256 hash SHA256 Windows Installer 3.4 Feb 10, 2018
coverage-4.5.1.win-amd64-py3.5.exe (887.0 kB) Copy SHA256 hash SHA256 Windows Installer 3.5 Feb 10, 2018
coverage-4.5.1.win-amd64-py3.6.exe (887.0 kB) Copy SHA256 hash SHA256 Windows Installer 3.6 Feb 10, 2018

Supported by

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