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 Pythons 2.3 through 3.3, and PyPy 1.9.

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

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 3.7.1
Filename, size File type Python version Upload date Hashes
Filename, size coverage-3.7.1-cp26-none-win32.whl (115.6 kB) File type Wheel Python version 2.6 Upload date Hashes View hashes
Filename, size coverage-3.7.1-cp26-none-win_amd64.whl (115.5 kB) File type Wheel Python version 2.6 Upload date Hashes View hashes
Filename, size coverage-3.7.1-cp27-none-win32.whl (115.4 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size coverage-3.7.1-cp27-none-win_amd64.whl (115.3 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size coverage-3.7.1-cp32-none-win32.whl (115.4 kB) File type Wheel Python version 3.2 Upload date Hashes View hashes
Filename, size coverage-3.7.1-cp32-none-win_amd64.whl (115.3 kB) File type Wheel Python version 3.2 Upload date Hashes View hashes
Filename, size coverage-3.7.1-cp33-none-win32.whl (115.6 kB) File type Wheel Python version 3.3 Upload date Hashes View hashes
Filename, size coverage-3.7.1-cp33-none-win_amd64.whl (115.6 kB) File type Wheel Python version 3.3 Upload date Hashes View hashes
Filename, size coverage-3.7.1-cp34-none-win32.whl (115.6 kB) File type Wheel Python version 3.4 Upload date Hashes View hashes
Filename, size coverage-3.7.1-cp34-none-win_amd64.whl (115.5 kB) File type Wheel Python version 3.4 Upload date Hashes View hashes
Filename, size coverage-3.7.1.tar.gz (284.7 kB) File type Source Python version None Upload date Hashes View hashes
Filename, size coverage-3.7.1.win32-py2.6.exe (428.1 kB) File type Windows Installer Python version 2.6 Upload date Hashes View hashes
Filename, size coverage-3.7.1.win32-py2.7.exe (427.8 kB) File type Windows Installer Python version 2.7 Upload date Hashes View hashes
Filename, size coverage-3.7.1.win32-py3.2.exe (427.9 kB) File type Windows Installer Python version 3.2 Upload date Hashes View hashes
Filename, size coverage-3.7.1.win32-py3.3.exe (423.0 kB) File type Windows Installer Python version 3.3 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page