1
.\" Copyright 2001 Gareth Rees. All rights reserved.
2
.\" Copyright 2004-2006 Ned Batchelder. All rights reserved.
3
.\" Copyright 2007 Lars Wirzenius.
5
.\" Redistribution and use in source and binary forms, with or without
6
.\" modification, are permitted provided that the following conditions are
9
.\" 1. Redistributions of source code must retain the above copyright
10
.\" notice, this list of conditions and the following disclaimer.
12
.\" 2. Redistributions in binary form must reproduce the above copyright
13
.\" notice, this list of conditions and the following disclaimer in the
14
.\" documentation and/or other materials provided with the
17
.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
.\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20
.\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21
.\" HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
23
.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
24
.\" OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
26
.\" TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
27
.\" USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30
.TH PYTHON\-COVERAGE 1
32
python\-coverage \- measure code coverage of Python program execution
34
.BI "python\-coverage \-x " module.py
37
.BI "python\-coverage \-e"
39
.BI "python\-coverage \-r"
42
.BI "python\-coverage \-a "
46
executes a Python program and measures which of its statements are
47
executed and which are not.
48
It stores the information in the file
50
in the current working directory.
59
Execute a Python module, giving it the remaining command line arguments.
62
Produce a coverage report.
67
show the line numbers that were missed by the execution.
70
Annotate source files.
75
with executed lines prefixed by ">" and non-executed by "!".
78
Produce a help summary.
79
It might be more helpful than this manual page.
83
command is a one-line Python script which calls the
85
Python module to do all the work.
86
The module was riginally developed by Gareth Rees,
87
and is now developed by Ned Batchelder.
88
The module's home page is
90
.IR http://www.nedbatchelder.com/code/modules/coverage.html .
92
This manual page was cobbled together by Lars Wirzenius for Debian,
93
by copy-pasting from the help texts from the module.