| 71 | bool assertionEnded(Catch::AssertionStats const &) override { return false; } |
| 72 | |
| 73 | void testRunEnded(Catch::TestRunStats const &stats) override { |
| 74 | auto &os = Catch::cout(); |
| 75 | auto passed = stats.totals.testCases.passed; |
| 76 | auto failed = stats.totals.testCases.failed; |
| 77 | auto total = passed + failed; |
| 78 | auto assertions = stats.totals.assertions.passed + stats.totals.assertions.failed; |
| 79 | if (failed == 0) { |
| 80 | os << "[ PASSED ] " << total << " test cases, " << assertions << " assertions.\n"; |
| 81 | } else { |
| 82 | os << "[ FAILED ] " << failed << " of " << total << " test cases, " << assertions |
| 83 | << " assertions.\n"; |
| 84 | } |
| 85 | os.flush(); |
| 86 | } |
| 87 | |
| 88 | private: |
| 89 | void print_python_version_once() { |
nothing calls this directly
no outgoing calls
no test coverage detected