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