interface documentation
class IReporterWithDurations(IReporter): (source)
Known implementations: twisted.trial._dist.distreporter.DistReporter, twisted.trial.reporter.TestResultDecorator
The IReporter interface with the 'durations' additions added to the standard library in 3.12.
| Method | add |
Collect a duration for test into IReporterWithDurations.collectedDurations. |
| Attribute | collected |
The collected durations of the tests reported. |
Inherited from IReporter:
| Method | add |
Record that a test has raised an unexpected exception. |
| Method | add |
Record that the given test failed, and was expected to do so. |
| Method | add |
Record that a test has failed with the given failure. |
| Method | add |
Record that a test has been skipped for the given reason. |
| Method | add |
Record that test passed. |
| Method | add |
Record that the given test failed, and was expected to do so. |
| Method | done |
Called when the test run is complete. |
| Method | start |
Report the beginning of a run of a single test method. |
| Method | stop |
Report the status of a single test method |
| Method | was |
Return a boolean indicating whether all test results that were reported to this reporter were successful or not. |
| Attribute | should |
A boolean indicating that this reporter would like the test run to stop. |
| Attribute | tests |
The number of tests that seem to have been run according to this reporter. |