|Ned Batchelder : Blog | Code | Text | Site|
» Home : Code : coverage.py
Created 24 May 2009, last updated 11 November 2012
The API to coverage.py is very simple, contained in a single module called coverage. Most of the interface is in a single class, also called coverage. Methods on the coverage object correspond roughly to operations available in the command line interface. For example, a simple use would be:
The coverage module
Starting coverage automatically
This function is used to start coverage measurement automatically when Python starts. See Measuring subprocesses for details.