Lines Matching refs:coverage

5 from coverage.backward import sorted                # pylint: disable=W0622
6 from coverage.execfile import run_python_file, run_python_module
7 from coverage.misc import CoverageException, ExceptionDuringRun, NoSource
15 help="Append coverage data to .coverage, otherwise it is started "
20 help="Measure branch coverage in addition to statement coverage."
43 help="Measure coverage even inside the Python installed library, "
66 help="Write the XML report to this file. Defaults to 'coverage.xml'"
71 ".coverage data file name to simplify collecting data from "
99 """Base OptionParser for coverage.
160 """Command-line parser for coverage.py classic arguments."""
197 """Parse one of the new-style commands for coverage.py."""
202 """Create an OptionParser for a coverage command.
215 prog="coverage %s" % (cmd or action),
250 description = "Combine data from multiple coverage files collected "
257 description = "Display information on the internals of coverage.py, "
265 description = "Erase previously collected coverage data."
270 description = "Describe how to use coverage.py"
281 description = "Create an HTML report of the coverage of the files. "
294 description = "Report coverage statistics on modules."
323 defaults = {'outfile': 'coverage.xml'},
325 description = "Generate an XML report of coverage results."
342 import coverage
343 self.covpkg = coverage
350 self.coverage = None
357 print("Use 'coverage help' for help.")
461 self.coverage = self.covpkg.coverage(
479 for label, info in self.coverage.sysinfo():
490 self.coverage.load()
491 print("path: %s" % self.coverage.data.filename)
492 print("has_arcs: %r" % self.coverage.data.has_arcs())
493 summary = self.coverage.data.summary(fullpath=True)
507 self.coverage.erase()
509 self.coverage.load()
513 self.coverage.start()
526 self.coverage.stop()
527 self.coverage.save()
530 self.coverage.combine()
531 self.coverage.save()
542 self.coverage.report(
545 self.coverage.annotate(
548 self.coverage.html_report(
552 self.coverage.xml_report(outfile=outfile, **report_args)
562 # When running coverage as coverage.exe, some of the behavior
575 Measure, collect, and report on code coverage in Python programs.
579 coverage -x [-p] [-L] [--timid] MODULE.py [ARG1 ARG2 ...]
581 coverage data. With the -p option, include the machine name and process
582 id in the .coverage file name. With -L, measure coverage even inside the
586 coverage -e
587 Erase collected coverage data.
589 coverage -c
590 Combine data from multiple coverage files (as created by -p option above)
591 and store it into a single file representing the union of the coverage.
593 coverage -r [-m] [-i] [-o DIR,...] [FILE1 FILE2 ...]
594 Report on the statement coverage for the given files. With the -m
597 coverage -b -d DIR [-i] [-o DIR,...] [FILE1 FILE2 ...]
598 Create an HTML report of the coverage of the given files. Each file gets
602 coverage -a [-d DIR] [-i] [-o DIR,...] [FILE1 FILE2 ...]
614 e.g. coverage -i -r -o c:\python25,lib\enthought\traits
616 Coverage data is saved in the file .coverage by default. Set the
621 Measure, collect, and report on code coverage in Python programs.
623 usage: coverage <command> [options] [args]
628 erase Erase previously collected coverage data.
629 help Get help on using coverage.py.
631 report Report coverage stats on modules.
633 xml Create an XML report of coverage results.
635 Use "coverage help <command>" for detailed help on any command.
636 Use "coverage help classic" for help on older command syntax.
640 Code coverage for Python. Use 'coverage help' for help.
666 # A controlled error inside coverage.py: print the message to the user.