t.t.r.TestResult(pyunit.TestResult, object) : class documentation

Part of twisted.trial.reporter View Source View In Hierarchy

Known subclasses: twisted.trial.reporter.Reporter

Implements interfaces: twisted.trial.itrial.IReporter

Accumulates the results of several twisted.trial.unittest.TestCases.
Instance Variable successes count the number of successes achieved by the test run. (type: int)
Method __init__ Undocumented
Method __repr__ Undocumented
Method startTest This must be called before the given test is commenced.
Method stopTest This must be called after the given test is completed.
Method addFailure Report a failed assertion for the given test.
Method addError Report an error that occurred while running the given test.
Method addSkip Report that the given test was skipped.
Method addUnexpectedSuccess Report that the given test succeeded against expectations.
Method addExpectedFailure Report that the given test failed, and was expected to do so.
Method addSuccess Report that the given test succeeded.
Method upDownError Deprecated in Twisted 8.0.
Method cleanupErrors Report an error that occurred during the cleanup between tests.
Method startSuite Deprecated in Twisted 8.0.
Method endSuite Deprecated in Twisted 8.0.
Method done The test suite has finished running.
Method _getTime Undocumented
Method _getFailure Convert a sys.exc_info()-style tuple to a Failure, if necessary.
successes =
count the number of successes achieved by the test run. (type: int)
def __init__(self): (source)
Undocumented
def __repr__(self): (source)
Undocumented
def _getTime(self): (source)
Undocumented
def _getFailure(self, error): (source)
Convert a sys.exc_info()-style tuple to a Failure, if necessary.
def startTest(self, test): (source)
This must be called before the given test is commenced.
def stopTest(self, test): (source)
This must be called after the given test is completed.
def addFailure(self, test, fail): (source)
Report a failed assertion for the given test.
def addError(self, test, error): (source)
Report an error that occurred while running the given test.
def addSkip(self, test, reason): (source)
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.

def addUnexpectedSuccess(self, test, todo): (source)
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.

def addExpectedFailure(self, test, error, todo): (source)
Report that the given test failed, and was expected to do so.

In Trial, tests can be marked 'todo'. That is, they are expected to fail.

def addSuccess(self, test): (source)
Report that the given test succeeded.
def upDownError(self, method, error, warn, printStatus): (source)
Deprecated in Twisted 8.0.

Called when an error occurs in a setUp* or tearDown* method

Parameterswarnindicates whether or not the reporter should emit a warning about the error (type: Boolean)
printStatusindicates whether or not the reporter should print the name of the method and the status message appropriate for the type of error (type: Boolean)
def cleanupErrors(self, errs): (source)
Report an error that occurred during the cleanup between tests.
def startSuite(self, name): (source)
Deprecated in Twisted 8.0.

Suites which wish to appear in reporter output should call this before running their tests.

def endSuite(self, name): (source)
Deprecated in Twisted 8.0.

Called at the end of a suite, if and only if that suite has called startSuite.

def done(self): (source)
The test suite has finished running.
API Documentation for Twisted, generated by pydoctor at 2012-06-04 17:20:01.