class documentation

class _Reporter: (source)

Implements interfaces: twisted.plugin.IPlugin, twisted.trial.itrial.IReporter

View In Hierarchy

Undocumented

Method __init__ Undocumented
Instance Variable name Undocumented
Instance Variable module Undocumented
Instance Variable description Undocumented
Instance Variable longOpt Undocumented
Instance Variable shortOpt Undocumented
Instance Variable klass Undocumented
Property stream Undocumented
Property tbformat Undocumented
Property args Undocumented
Property shouldStop A boolean indicating that this reporter would like the test run to stop.
Property separator Undocumented
Property testsRun The number of tests that seem to have been run according to this reporter.
Method addError Record that a test has raised an unexpected exception.
Method addExpectedFailure Record that the given test failed, and was expected to do so.
Method addFailure Record that a test has failed with the given failure.
Method addSkip Record that a test has been skipped for the given reason.
Method addSuccess Record that test passed.
Method addUnexpectedSuccess Record that the given test failed, and was expected to do so.
Method cleanupErrors Undocumented
Method done Called when the test run is complete.
Method endSuite Undocumented
Method printErrors Undocumented
Method printSummary Undocumented
Method startSuite Undocumented
Method startTest Report the beginning of a run of a single test method.
Method stopTest Report the status of a single test method
Method upDownError Undocumented
Method wasSuccessful Return a boolean indicating whether all test results that were reported to this reporter were successful or not.
Method write Undocumented
Method writeln Undocumented
def __init__(self, name, module, description, longOpt, shortOpt, klass): (source)

Undocumented

name = (source)

Undocumented

module = (source)

Undocumented

description = (source)

Undocumented

longOpt = (source)

Undocumented

shortOpt = (source)

Undocumented

klass = (source)

Undocumented

@property
stream = (source)

Undocumented

@property
tbformat = (source)

Undocumented

@property
args = (source)

Undocumented

@property
shouldStop = (source)

A boolean indicating that this reporter would like the test run to stop.

@property
separator = (source)

Undocumented

@property
testsRun = (source)

The number of tests that seem to have been run according to this reporter.

def addError(self, test, error): (source)

Record that a test has raised an unexpected exception.

ParameterstestThe test that has raised an error.
errorThe error that the test raised. It will either be a three-tuple in the style of sys.exc_info() or a Failure object.
def addExpectedFailure(self, test, failure, todo=None): (source)

Record that the given test failed, and was expected to do so.

In Twisted 15.5 and prior, todo was a mandatory parameter.

ParameterstestThe test which this is about. (type: unittest.TestCase)
failureThe error which this test failed with. (type: failure.Failure)
todoThe reason for the test's TODO status. If None, a generic reason is used. (type: unittest.Todo)
def addFailure(self, test, failure): (source)

Record that a test has failed with the given failure.

ParameterstestThe test that has failed.
failureThe failure that the test failed with. It will either be a three-tuple in the style of sys.exc_info() or a Failure object.
def addSkip(self, test, reason): (source)

Record that a test has been skipped for the given reason.

ParameterstestThe test that has been skipped.
reasonAn object that the test case has specified as the reason for skipping the test.
def addSuccess(self, test): (source)

Record that test passed.

def addUnexpectedSuccess(self, test, todo=None): (source)

Record that the given test failed, and was expected to do so.

In Twisted 15.5 and prior, todo was a mandatory parameter.

ParameterstestThe test which this is about. (type: unittest.TestCase)
todoThe reason for the test's TODO status. If None, a generic reason is used. (type: unittest.Todo)
def cleanupErrors(self, errs): (source)

Undocumented

def done(self): (source)

Called when the test run is complete.

This gives the result object an opportunity to display a summary of information to the user. Once you have called done on an IReporter object, you should assume that the IReporter object is no longer usable.

def endSuite(self, name): (source)

Undocumented

def printErrors(self): (source)

Undocumented

def printSummary(self): (source)

Undocumented

def startSuite(self, name): (source)

Undocumented

def startTest(self, method): (source)

Report the beginning of a run of a single test method.

Parametersmethodan object that is adaptable to ITestMethod
def stopTest(self, method): (source)

Report the status of a single test method

Parametersmethodan object that is adaptable to ITestMethod
def upDownError(self, userMeth, warn=True, printStatus=True): (source)

Undocumented

def wasSuccessful(self): (source)

Return a boolean indicating whether all test results that were reported to this reporter were successful or not.

def write(self, string): (source)

Undocumented

def writeln(self, string): (source)

Undocumented

API Documentation for Twisted, generated by pydoctor 21.2.0 at 2021-02-28 21:00:42.