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.2, 3.3, or 3.4, and PyPy 2.2.

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.

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.

Source Distribution

coverage-4.0a1.tar.gz (299.2 kB view details)

Uploaded Source

File details

Details for the file coverage-4.0a1.tar.gz.

File metadata

  • Download URL: coverage-4.0a1.tar.gz
  • Upload date:
  • Size: 299.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for coverage-4.0a1.tar.gz
Algorithm Hash digest
SHA256 58605ced1da98317632755d2d8526c4c29cfca2aaa5c853207c3fc8a5c7cb35c
MD5 48d6a2d84843b13666b1ea4727e14919
BLAKE2b-256 372c84d7b1f1d0741d1b1ff451b90674cd599bd3edeb72e134d9cfe922912e6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page