2009-11-05 10:18:55 +08:00
|
|
|
|
2010-04-12 22:08:12 +08:00
|
|
|
Write and report coverage data with the 'coverage' package.
|
|
|
|
===========================================================
|
2009-11-05 10:18:55 +08:00
|
|
|
|
|
|
|
|
2010-04-12 22:08:12 +08:00
|
|
|
.. contents::
|
|
|
|
:local:
|
2009-11-05 10:18:55 +08:00
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
Original code by Ross Lawley.
|
2010-04-12 22:08:12 +08:00
|
|
|
|
2010-07-07 21:41:28 +08:00
|
|
|
Requires Ned Batchelder's excellent coverage:
|
|
|
|
http://nedbatchelder.com/code/coverage/
|
2010-04-12 22:08:12 +08:00
|
|
|
|
|
|
|
command line options
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
|
|
|
|
``--cover=COVERPACKAGES``
|
|
|
|
(multi allowed) only include info from specified package.
|
|
|
|
``--cover-report=REPORT_TYPE``
|
|
|
|
html: Directory for html output.
|
|
|
|
report: Output a text report.
|
|
|
|
annotate: Annotate your source code for which lines were executed and which were not.
|
|
|
|
``--cover-directory=DIRECTORY``
|
|
|
|
Directory for the reports (html / annotate results) defaults to ./coverage
|
|
|
|
``--cover-show-missing``
|
|
|
|
Show missing files
|
|
|
|
``--cover-ignore-errors=IGNORE_ERRORS``
|
|
|
|
Ignore errors of finding source files for code.
|
|
|
|
|
|
|
|
.. include:: links.txt
|