Man Linux: Main Page and Category List

NAME

       python-coverage - measure code coverage of Python program execution

SYNOPSIS

       python-coverage -x module.py [ARG...]
       python-coverage -e
       python-coverage -r [-m]
       python-coverage -a [file...]

DESCRIPTION

       python-coverage  executes  a  Python  program and measures which of its
       statements are executed and which are not.  It stores  the  information
       in the file .coverage in the current working directory.

OPTIONS

       -e     Erase the .coverage file.

       -x     Execute  a  Python  module, giving it the remaining command line
              arguments.

       -r     Produce a coverage report.

       -m     With  -r,  show  the  line  numbers  that  were  missed  by  the
              execution.

       -a     Annotate  source  files.   For  each  source  file  foo, produce
              foo,cover, with executed lines prefixed by ">" and  non-executed
              by "!".

       --help Produce  a  help  summary.   It  might be more helpful than this
              manual page.

AUTHOR

       The python-coverage command is a one-line Python script which calls the
       coverage.py Python module to do all the work.  The module was riginally
       developed by Gareth Rees, and is now developed by Ned Batchelder.   The
       module’s home page is
       http://www.nedbatchelder.com/code/modules/coverage.html.

       This  manual page was cobbled together by Lars Wirzenius for Debian, by
       copy-pasting from the help texts from the module.