class documentation
class _Reporter: (source)
Constructor: _Reporter(name, module, description, longOpt, ...)
Implements interfaces: twisted.plugin.IPlugin, twisted.trial.itrial.IReporter
Undocumented
| Method | __init__ |
Undocumented |
| 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 | cleanup |
Undocumented |
| Method | done |
Called when the test run is complete. |
| Method | end |
Undocumented |
| Method | print |
Undocumented |
| Method | print |
Undocumented |
| Method | start |
Undocumented |
| Method | start |
Report the beginning of a run of a single test method. |
| Method | stop |
Report the status of a single test method |
| Method | up |
Undocumented |
| Method | was |
Return a boolean indicating whether all test results that were reported to this reporter were successful or not. |
| Method | write |
Undocumented |
| Method | writeln |
Undocumented |
| Instance Variable | description |
Undocumented |
| Instance Variable | klass |
Undocumented |
| Instance Variable | long |
Undocumented |
| Instance Variable | module |
Undocumented |
| Instance Variable | name |
Undocumented |
| Instance Variable | short |
Undocumented |
| Property | args |
Undocumented |
| Property | separator |
Undocumented |
| Property | should |
A boolean indicating that this reporter would like the test run to stop. |
| Property | stream |
Undocumented |
| Property | tbformat |
Undocumented |
| Property | tests |
The number of tests that seem to have been run according to this reporter. |
Record that a test has raised an unexpected exception.
| Parameters | |
| test | The test that has raised an error. |
| error | The error that the test raised. It will either be a three-tuple in the style of sys.exc_info() or a Failure object. |
Record that the given test failed, and was expected to do so.
In Twisted 15.5 and prior, todo was a mandatory parameter.
| Parameters | |
test:unittest.TestCase | The test which this is about. |
failure:failure.Failure | The error which this test failed with. |
todo:unittest.Todo | The reason for the test's TODO status. If None, a generic reason is used. |
Record that a test has failed with the given failure.
| Parameters | |
| test | The test that has failed. |
| failure | The failure that the test failed with. It will either be a three-tuple in the style of sys.exc_info() or a Failure object. |
Record that a test has been skipped for the given reason.
| Parameters | |
| test | The test that has been skipped. |
| reason | An object that the test case has specified as the reason for skipping the test. |
Record that the given test failed, and was expected to do so.
In Twisted 15.5 and prior, todo was a mandatory parameter.
| Parameters | |
test:unittest.TestCase | The test which this is about. |
todo:unittest.Todo | The reason for the test's TODO status. If None, a generic reason is used. |
Report the beginning of a run of a single test method.
| Parameters | |
| method | an object that is adaptable to ITestMethod |
Return a boolean indicating whether all test results that were reported to this reporter were successful or not.