Code coverage testing for Python.

Build status Windows build status Coverage!

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.

Getting Started

See the quick start section of the docs.