Exemplo n.º 1
0
 def testMassiveCoverage(self):
     helpers.ensure_coverage_support()
     testoob.testing.command_line(
         self._coverageArgs("massive"),
         expected_error_regex=
         "missing.*\['[0-9]+'.*covered [0-9]+% of the code",
     )
Exemplo n.º 2
0
 def testNormalCoverage(self):
     helpers.ensure_coverage_support()
     testoob.testing.command_line(
         self._coverageArgs("normal"),
         expected_error_regex=
         "lines.*cov_n.*module.*path.*TOTAL.*covered [0-9]+% of the code",
     )
Exemplo n.º 3
0
 def testCoverageMissingEOL(self):
     helpers.ensure_coverage_support()
     suite_file = os.path.join(current_directory(), "missing_eol_tests.py")
     testoob.testing.command_line(
             _testoob_args(options=["--coverage=slim"], suite_file=suite_file),
             expected_error_regex='Ran 2 tests',
             expected_rc=0,
     )
Exemplo n.º 4
0
 def testCoverageMissingEOL(self):
     helpers.ensure_coverage_support()
     suite_file = os.path.join(current_directory(), "missing_eol_tests.py")
     testoob.testing.command_line(
         _testoob_args(options=["--coverage=slim"], suite_file=suite_file),
         expected_error_regex='Ran 2 tests',
         expected_rc=0,
     )
Exemplo n.º 5
0
 def setUp(self):
     helpers.ensure_coverage_support()
     from testoob.coverage import Coverage
     self.coverage = Coverage()
Exemplo n.º 6
0
 def testMassiveCoverage(self):
     helpers.ensure_coverage_support()
     testoob.testing.command_line(
         self._coverageArgs("massive"),
         expected_error_regex="missing.*\['[0-9]+'.*covered [0-9]+% of the code",
     )
Exemplo n.º 7
0
 def testNormalCoverage(self):
     helpers.ensure_coverage_support()
     testoob.testing.command_line(
         self._coverageArgs("normal"),
         expected_error_regex="lines.*cov_n.*module.*path.*TOTAL.*covered [0-9]+% of the code",
     )
Exemplo n.º 8
0
 def testSlimCoverage(self):
     helpers.ensure_coverage_support()
     testoob.testing.command_line(
         self._coverageArgs("slim"),
         expected_error_regex="covered [0-9]+% of the code",
     )
Exemplo n.º 9
0
 def testSilentCoverage(self):
     helpers.ensure_coverage_support()
     testoob.testing.command_line(
         self._coverageArgs("silent"),
         expected_rc=0,
     )
Exemplo n.º 10
0
 def testSlimCoverage(self):
     helpers.ensure_coverage_support()
     testoob.testing.command_line(
         self._coverageArgs("slim"),
         expected_error_regex="covered [0-9]+% of the code",
     )
Exemplo n.º 11
0
 def testSilentCoverage(self):
     helpers.ensure_coverage_support()
     testoob.testing.command_line(
         self._coverageArgs("silent"),
         expected_rc=0,
     )
Exemplo n.º 12
0
 def setUp(self):
     helpers.ensure_coverage_support()
     from testoob.coverage import Coverage
     self.coverage = Coverage()