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 | RSS feed

This version

3.7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coverage-3.7.tar.gz (283.4 kB view details)

Uploaded Source

Built Distributions

coverage-3.7.win32-py3.3.exe (422.2 kB view details)

Uploaded Source

coverage-3.7.win32-py3.2.exe (427.1 kB view details)

Uploaded Source

coverage-3.7.win32-py2.7.exe (427.0 kB view details)

Uploaded Source

coverage-3.7.win32-py2.6.exe (427.3 kB view details)

Uploaded Source

File details

Details for the file coverage-3.7.tar.gz.

File metadata

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

File hashes

Hashes for coverage-3.7.tar.gz
Algorithm Hash digest
SHA256 c50ee4c391a083d87e2345b0094a7ec24a07b98b4e435f134d02a62ea3827fdb
MD5 055d82e6849d882ec6cf2ae1faca8e56
BLAKE2b-256 0ba1d0fcb2304248370b36eaf4250ae3c6993b93ecd442613a75c9c2682598c5

See more details on using hashes here.

File details

Details for the file coverage-3.7.win32-py3.3.exe.

File metadata

File hashes

Hashes for coverage-3.7.win32-py3.3.exe
Algorithm Hash digest
SHA256 551b9b6ae980077f5ce1f3faf1621a76fa16994700670b78688d0414ec51539c
MD5 14f9d895a18ed2cb879019573422cd5d
BLAKE2b-256 fb405400a5513475e84d5a083d26d3feae8f41539b7521cf6f37f929d4cc4d69

See more details on using hashes here.

File details

Details for the file coverage-3.7.win32-py3.2.exe.

File metadata

File hashes

Hashes for coverage-3.7.win32-py3.2.exe
Algorithm Hash digest
SHA256 52b337e2e912de8db0afc82b9fb64f41590742474507718533d80f9ea7e099cd
MD5 9c6bf6adc44c7b9045736980a5e2f423
BLAKE2b-256 794ee85cdc566f1c0a0d7d86b8b970580f0102dadcaf9121afac7f246746593e

See more details on using hashes here.

File details

Details for the file coverage-3.7.win32-py2.7.exe.

File metadata

File hashes

Hashes for coverage-3.7.win32-py2.7.exe
Algorithm Hash digest
SHA256 aa94585475a0dd1db94d83990c8484ce4f34f1499d4b5a88bd99dc54f6d15e72
MD5 6ce25a129b289d772335a1ab5d5e5fc1
BLAKE2b-256 ffeee70d95cc6ec8642a38a289a9cce3e584ef3f40a00123d1503e387d3ab08d

See more details on using hashes here.

File details

Details for the file coverage-3.7.win32-py2.6.exe.

File metadata

File hashes

Hashes for coverage-3.7.win32-py2.6.exe
Algorithm Hash digest
SHA256 39702539dd7334ac55efd8c6be825f61a01e11d96ebf61348fdd25c77f55e4dd
MD5 44bfb8cde6f27f403aa951af1aa4006f
BLAKE2b-256 6b6404a210a21445e595ab32a55131c9e327eb9d6e4f2a693b4b9a8edfdce7af

See more details on using hashes here.

Supported by

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