html_reporter.result
This module contains the HTMLTEstRunner class.
Module Contents
Classes
A dataclass representing a test case result. |
|
HTMLTestResult is a pure representation of results. |
Attributes
- class html_reporter.result.TestCaseResult[source]
A dataclass representing a test case result.
- Parameters
status (TestStatus) – the test case status
test_case (unittest.TestCase) – the test case object
output (str) – the test case output
error (str) – the test case error
- class html_reporter.result.HTMLTestResult(descriptions=None, verbosity: int = 1)[source]
Bases:
unittest.TestResultHTMLTestResult is a pure representation of results. It lacks the output and reporting ability compares to
unittest.TextTestResult.Constructor.
- Parameters
descriptions (optional) – descriptions, defaults to None
verbosity (int, optional) – verbosity, defaults to 1
- complete_output()[source]
Disconnect output redirection and return buffer. Safe to call multiple times.
- addError(test, err)[source]
Called when an error has occurred. ‘err’ is a tuple of values as returned by sys.exc_info().