Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

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, or 3.4, 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 | RSS feed

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.0a3
Filename, size File type Python version Upload date Hashes
Filename, size coverage-4.0a3.tar.gz (278.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page