Run single test case eg 'foo.BarTest'. This is needed to run single testcase that is marked as IsolatedTest.
(self, testcase)
| 90 | # ---- Public methods |
| 91 | |
| 92 | def run_testcase(self, testcase): |
| 93 | # type: (str) -> None |
| 94 | """Run single test case eg 'foo.BarTest'. This is needed to |
| 95 | run single testcase that is marked as IsolatedTest.""" |
| 96 | self._discover("[!_]*.py", testcase) |
| 97 | assert not self._count_suites(self._isolated_suites) |
| 98 | if not self._count_suites(self._suites): |
| 99 | print("[_test_runner.py] ERROR: test case not found") |
| 100 | sys.exit(1) |
| 101 | # Import errors found during discovery are ignored |
| 102 | self._run_suites(self._suites) |
| 103 | self._exit() |
| 104 | |
| 105 | def run_file(self, filename): |
| 106 | # type: (str) -> None |
no test coverage detected