|
etr
4.0-pre
|
Outputs test results as text on a stream. More...
Public Member Functions | |
| def | __init__ (self, stream) |
| Construct new result and the optional stream to print to. More... | |
| def | has_failures (self) |
| Returns True if any test has failed else False. More... | |
| def | get_description (self, TestCaseResult test) |
| Return description. More... | |
| def | get_result_str (self, TestCaseResult test) |
| Return result as string. More... | |
| def | add_result (self, TestCaseResult test) |
| Add test result. More... | |
| def | add_diagnostics (self, source, message) |
| Adds diagostic message that is printed after summary. More... | |
| def | print_intro (self) |
| Print intro separator. More... | |
| def | print_summary (self) |
| Print summary. More... | |
Public Attributes | |
| stream | |
| failures | |
| passed | |
| errors | |
| skipped | |
| tests | |
| time | |
| diagnostics | |
Static Public Attributes | |
| string | separator = "-" * 70 |
Outputs test results as text on a stream.
| def etr.result.TextTestResult.__init__ | ( | self, | |
| stream | |||
| ) |
Construct new result and the optional stream to print to.
| def etr.result.TextTestResult.add_diagnostics | ( | self, | |
| source, | |||
| message | |||
| ) |
Adds diagostic message that is printed after summary.
| def etr.result.TextTestResult.add_result | ( | self, | |
| TestCaseResult | test | ||
| ) |
Add test result.
| def etr.result.TextTestResult.get_description | ( | self, | |
| TestCaseResult | test | ||
| ) |
Return description.
| def etr.result.TextTestResult.get_result_str | ( | self, | |
| TestCaseResult | test | ||
| ) |
Return result as string.
| def etr.result.TextTestResult.has_failures | ( | self | ) |
Returns True if any test has failed else False.
| def etr.result.TextTestResult.print_intro | ( | self | ) |
Print intro separator.
| def etr.result.TextTestResult.print_summary | ( | self | ) |
Print summary.
| etr.result.TextTestResult.diagnostics |
| etr.result.TextTestResult.errors |
| etr.result.TextTestResult.failures |
| etr.result.TextTestResult.passed |
|
static |
| etr.result.TextTestResult.skipped |
| etr.result.TextTestResult.stream |
| etr.result.TextTestResult.tests |
| etr.result.TextTestResult.time |