Skip to main content

Code coverage measurement for Python

Project description

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 CPython 2.6, 2.7, 3.3, 3.4 or 3.5, PyPy 2.4, and PyPy3 2.4.

Documentation is at nedbatchelder.com. Code repository and issue tracker are on Bitbucket, with a mirrored repo on GitHub.

New in 4.0 alpha: --concurrency, dropped support for older Pythons, setup.cfg support, plugins for other file variants, –skip-covered, HTML filtering.

New in 3.7: --debug, and 12 bugs closed.

New in 3.6: --fail-under, and >20 bugs closed.

New in 3.5: Branch coverage exclusions, keyboard shortcuts in HTML report.

New in 3.4: Better control over source to measure, and unexecuted files can be reported.

New in 3.3: .coveragerc files.

New in 3.2: Branch coverage!

Project details


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 4.0a6
Filename, size File type Python version Upload date Hashes
Filename, size coverage-4.0a6-cp26-none-macosx_10_10_x86_64.whl (142.9 kB) File type Wheel Python version cp26 Upload date Hashes View hashes
Filename, size coverage-4.0a6-cp26-none-win32.whl (144.0 kB) File type Wheel Python version cp26 Upload date Hashes View hashes
Filename, size coverage-4.0a6-cp26-none-win_amd64.whl (144.2 kB) File type Wheel Python version cp26 Upload date Hashes View hashes
Filename, size coverage-4.0a6-cp27-none-macosx_10_10_x86_64.whl (142.9 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size coverage-4.0a6-cp27-none-win32.whl (143.7 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size coverage-4.0a6-cp27-none-win_amd64.whl (144.0 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size coverage-4.0a6-cp33-cp33m-macosx_10_10_x86_64.whl (143.0 kB) File type Wheel Python version cp33 Upload date Hashes View hashes
Filename, size coverage-4.0a6-cp33-none-win32.whl (143.8 kB) File type Wheel Python version cp33 Upload date Hashes View hashes
Filename, size coverage-4.0a6-cp33-none-win_amd64.whl (144.0 kB) File type Wheel Python version cp33 Upload date Hashes View hashes
Filename, size coverage-4.0a6-cp34-cp34m-macosx_10_10_x86_64.whl (143.0 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size coverage-4.0a6-cp34-none-win32.whl (143.7 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size coverage-4.0a6-cp34-none-win_amd64.whl (143.9 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size coverage-4.0a6-cp35-none-win32.whl (144.6 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size coverage-4.0a6-cp35-none-win_amd64.whl (145.7 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size coverage-4.0a6-py2.6-win32.egg (245.5 kB) File type Egg Python version 2.6 Upload date Hashes View hashes
Filename, size coverage-4.0a6-py2.6-win-amd64.egg (245.8 kB) File type Egg Python version 2.6 Upload date Hashes View hashes
Filename, size coverage-4.0a6-py2.7-win32.egg (244.2 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size coverage-4.0a6-py2.7-win-amd64.egg (244.6 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size coverage-4.0a6-py3.3-win32.egg (251.1 kB) File type Egg Python version 3.3 Upload date Hashes View hashes
Filename, size coverage-4.0a6-py3.3-win-amd64.egg (251.4 kB) File type Egg Python version 3.3 Upload date Hashes View hashes
Filename, size coverage-4.0a6-py3.4-win32.egg (248.1 kB) File type Egg Python version 3.4 Upload date Hashes View hashes
Filename, size coverage-4.0a6-py3.4-win-amd64.egg (248.4 kB) File type Egg Python version 3.4 Upload date Hashes View hashes
Filename, size coverage-4.0a6-py3.5-win32.egg (248.5 kB) File type Egg Python version 3.5 Upload date Hashes View hashes
Filename, size coverage-4.0a6-py3.5-win-amd64.egg (249.8 kB) File type Egg Python version 3.5 Upload date Hashes View hashes
Filename, size coverage-4.0a6.tar.bz2 (239.0 kB) File type Source Python version None Upload date Hashes View hashes
Filename, size coverage-4.0a6.tar.gz (294.5 kB) File type Source Python version None Upload date Hashes View hashes
Filename, size coverage-4.0a6.win32.exe (444.0 kB) File type Windows Installer Python version any Upload date Hashes View hashes
Filename, size coverage-4.0a6.win32-py2.6.exe (451.1 kB) File type Windows Installer Python version 2.6 Upload date Hashes View hashes
Filename, size coverage-4.0a6.win32-py2.7.exe (450.9 kB) File type Windows Installer Python version 2.7 Upload date Hashes View hashes
Filename, size coverage-4.0a6.win32-py3.3.exe (445.9 kB) File type Windows Installer Python version 3.3 Upload date Hashes View hashes
Filename, size coverage-4.0a6.win32-py3.4.exe (445.8 kB) File type Windows Installer Python version 3.4 Upload date Hashes View hashes
Filename, size coverage-4.0a6.win32-py3.5.exe (330.9 kB) File type Windows Installer Python version 3.5 Upload date Hashes View hashes
Filename, size coverage-4.0a6.win-amd64.exe (480.4 kB) File type Windows Installer Python version any Upload date Hashes View hashes
Filename, size coverage-4.0a6.win-amd64-py2.6.exe (487.2 kB) File type Windows Installer Python version 2.6 Upload date Hashes View hashes
Filename, size coverage-4.0a6.win-amd64-py2.7.exe (487.0 kB) File type Windows Installer Python version 2.7 Upload date Hashes View hashes
Filename, size coverage-4.0a6.win-amd64-py3.3.exe (485.4 kB) File type Windows Installer Python version 3.3 Upload date Hashes View hashes
Filename, size coverage-4.0a6.win-amd64-py3.4.exe (485.4 kB) File type Windows Installer Python version 3.4 Upload date Hashes View hashes
Filename, size coverage-4.0a6.win-amd64-py3.5.exe (349.5 kB) File type Windows Installer Python version 3.5 Upload date Hashes View hashes
Filename, size coverage-4.0a6.zip (395.2 kB) File type Source Python version None Upload date Hashes View hashes

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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page