Part of twisted.trial.reporter View Source View In Hierarchy
Known subclasses: twisted.trial.reporter.TimingTextReporter
A verbose reporter that prints the name of each test as it is running.
Each line is printed with the name of the test, followed by the result of that test.Method | startTest | This must be called before the given test is commenced. |
Method | addSuccess | Report that the given test succeeded. |
Method | addError | Report an error that occurred while running the given test. |
Method | addFailure | Report a failed assertion for the given test. |
Method | addSkip | Report that the given test was skipped. |
Method | addExpectedFailure | Report that the given test succeeded against expectations. |
Method | addUnexpectedSuccess | Report that the given test succeeded against expectations. |
Method | stopTest | This must be called after the given test is completed. |
Inherited from Reporter:
Method | __init__ | Undocumented |
Method | write | Undocumented |
Method | writeln | Undocumented |
Method | upDownError | called when an error occurs in a setUp* or tearDown* method |
Method | cleanupErrors | Report an error that occurred during the cleanup between tests. |
Method | _trimFrames | Undocumented |
Method | _formatFailureTraceback | Undocumented |
Method | _printResults | Undocumented |
Method | _printExpectedFailure | Undocumented |
Method | _printUnexpectedSuccess | Undocumented |
Method | printErrors | Print all of the non-success results in full to the stream. |
Method | printSummary | Print a line summarising the test results to the stream. |
Inherited from TestResult (via Reporter):
Method | __repr__ | Undocumented |
Method | _getTime | Undocumented |
Method | startSuite | Undocumented |
Method | endSuite | Undocumented |
Parameters | test | (type: pyunit.TestCase
) |
Parameters | test | (type: pyunit.TestCase
) |
Parameters | test | (type: pyunit.TestCase
) |
fail | (type: failure.Failure
or tuple
) |
Parameters | test | (type: pyunit.TestCase
) |
fail | (type: failure.Failure
or tuple
) |
Report that the given test was skipped.
In Trial, tests can be 'skipped'. Tests are skipped mostly because there is some platform or configuration issue that prevents them from being run correctly.Parameters | test | (type: pyunit.TestCase
) |
reason | (type: str
) |
Report that the given test succeeded against expectations.
In Trial, tests can be marked 'todo'. That is, they are expected to fail.Parameters | test | (type: pyunit.TestCase
) |
error | (type: failure.Failure
) | |
todo | (type: unittest.Todo
) |
Report that the given test succeeded against expectations.
In Trial, tests can be marked 'todo'. That is, they are expected to fail. When a test that is expected to fail instead succeeds, it should call this method to report the unexpected success.Parameters | test | (type: pyunit.TestCase
) |
todo | (type: unittest.Todo
) |
Parameters | test | (type: pyunit.TestCase
) |