Execute all test cases scheduled to be executed in this suite.
(self)
| 316 | raise BlockingTestSuiteError(test_suite_name) |
| 317 | |
| 318 | def _execute_test_suite(self) -> None: |
| 319 | """ |
| 320 | Execute all test cases scheduled to be executed in this suite. |
| 321 | """ |
| 322 | if self._func: |
| 323 | for test_case_method in self._get_functional_test_cases(): |
| 324 | test_case_name = test_case_method.__name__ |
| 325 | test_case_result = self._result.add_test_case(test_case_name) |
| 326 | all_attempts = SETTINGS.re_run + 1 |
| 327 | attempt_nr = 1 |
| 328 | self._run_test_case(test_case_method, test_case_result) |
| 329 | while not test_case_result and attempt_nr < all_attempts: |
| 330 | attempt_nr += 1 |
| 331 | self._logger.info( |
| 332 | f"Re-running FAILED test case '{test_case_name}'. " |
| 333 | f"Attempt number {attempt_nr} out of {all_attempts}." |
| 334 | ) |
| 335 | self._run_test_case(test_case_method, test_case_result) |
| 336 | |
| 337 | def _get_functional_test_cases(self) -> list[MethodType]: |
| 338 | """ |
no test coverage detected