|Ned Batchelder : Blog | Code | Text | Site|
» Home : Code
Created 24 May 2009, last updated 5 October 2013
Coverage.py is a tool for measuring code coverage of Python programs. It monitors your program, noting which parts of the code have been executed, then analyzes the source to identify code that could have been executed but was not.
Coverage measurement is typically used to gauge the effectiveness of tests. It can show which parts of your code are being exercised by tests, and which are not.
The latest version is coverage.py 3.7, released 6 October 2013. It is supported on Python versions 2.3 through 3.4, and PyPy 2.1.
Getting started is easy:
There are a few different ways to use coverage.py. The simplest is the command line, which lets you run your program and see the results. If you need more control over how your project is measured, you can use the API.
I can be reached in a number of ways. I’m happy to answer questions about using coverage.py.
Next: Installation »