(self)
| 472 | self.results.write_junit(self.junit_filename) |
| 473 | |
| 474 | def display_summary(self) -> None: |
| 475 | if self.first_runtests is None: |
| 476 | raise ValueError( |
| 477 | "Should never call `display_summary()` before calling `_run_test()`" |
| 478 | ) |
| 479 | |
| 480 | duration = time.perf_counter() - self.logger.start_time |
| 481 | filtered = bool(self.match_tests) |
| 482 | |
| 483 | # Total duration |
| 484 | print() |
| 485 | print("Total duration: %s" % format_duration(duration)) |
| 486 | |
| 487 | self.results.display_summary(self.first_runtests, filtered) |
| 488 | |
| 489 | # Result |
| 490 | state = self.get_state() |
| 491 | print(f"Result: {state}") |
| 492 | |
| 493 | def create_run_tests(self, tests: TestTuple) -> RunTests: |
| 494 | return RunTests( |
no test coverage detected