Package nltk :: Package test :: Module coverage
[hide private]
[frames] | no frames]

Module coverage

source code

Usage:

coverage.py -x [-p] MODULE.py [ARG1 ARG2 ...]
    Execute module, passing the given command-line arguments, collecting
    coverage data. With the -p option, write to a temporary file containing
    the machine name and process ID.

coverage.py -e
    Erase collected coverage data.

coverage.py -c
    Collect data from multiple coverage files (as created by -p option above)
    and store it into a single file representing the union of the coverage.

coverage.py -r [-m] [-o dir1,dir2,...] FILE1 FILE2 ...
    Report on the statement coverage for the given files.  With the -m
    option, show line numbers of the statements that weren't executed.

coverage.py -a [-d dir] [-o dir1,dir2,...] FILE1 FILE2 ...
    Make annotated copies of the given files, marking statements that
    are executed with > and statements that are missed with !.  With
    the -d option, make the copies in that directory.  Without the -d
    option, make each copy in the same directory as the original.

-o dir,dir2,...
  Omit reporting or annotating files when their filename path starts with
  a directory listed in the omit list.
  e.g. python coverage.py -i -r -o c:\python23,lib\enthought\traits

Coverage data is saved in the file .coverage by default.  Set the
COVERAGE_FILE environment variable to save it somewhere else.


Version: 2.77.20070729

Classes [hide private]
  DefInfo
  StatementFindingAstVisitor
A visitor for a parsed Abstract Syntax Tree which finds executable statements.
  CoverageException
  coverage
Functions [hide private]
 
use_cache(*args, **kw) source code
 
start(*args, **kw) source code
 
stop(*args, **kw) source code
 
erase(*args, **kw) source code
 
begin_recursive(*args, **kw) source code
 
end_recursive(*args, **kw) source code
 
exclude(*args, **kw) source code
 
analysis(*args, **kw) source code
 
analysis2(*args, **kw) source code
 
analysis3(*args, **kw) source code
 
report(*args, **kw) source code
 
annotate(*args, **kw) source code
 
annotate_file(*args, **kw) source code
Variables [hide private]
  the_coverage = coverage()