Return a dictionary of outcome noun -> count from parsing the terminal output that the test process produced. The returned nouns will always be in plural form:: ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ==== Will return ``{"failed": 1, "passed": 1
(self)
| 555 | ) |
| 556 | |
| 557 | def parseoutcomes(self) -> dict[str, int]: |
| 558 | """Return a dictionary of outcome noun -> count from parsing the terminal |
| 559 | output that the test process produced. |
| 560 | |
| 561 | The returned nouns will always be in plural form:: |
| 562 | |
| 563 | ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ==== |
| 564 | |
| 565 | Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``. |
| 566 | """ |
| 567 | return self.parse_summary_nouns(self.outlines) |
| 568 | |
| 569 | @classmethod |
| 570 | def parse_summary_nouns(cls, lines) -> dict[str, int]: |
no test coverage detected