Code coverage testing for Python.
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 and 3.5; PyPy 2.4, 2.6 and 4.0; and PyPy3 2.4.
Documentation is on Read the Docs. Code repository and issue tracker are on Bitbucket, with a mirrored repository on GitHub.
New in 4.0: --concurrency
, plugins for non-Python files, setup.cfg
support, --skip-covered, HTML filtering, and more than 50 issues closed.
See the quick start section of the docs.
Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0. For details, see https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt.