module documentation

Test reporter forwarding test results over trial distributed AMP commands.

Present Since
12.3
Class ReportingResults No summary
Class WorkerReporter Reporter for trial's distributed workers. We send things not through a stream, but through an AMP protocol's callRemote method.
Async Function addError Send an error to the worker manager over an AMP connection.
Async Function addExpectedFailure Like addError but for expected failures.
Async Function addFailure No summary
Type Variable T Undocumented
async def addError(amp, testName, errorClass, error, frames): (source)

Send an error to the worker manager over an AMP connection.

First the pieces which can be large are streamed over the connection. Then, managercommands.AddError is called with the rest of the information and the stream IDs.

:param amp: The connection to use. :param testName: The name (or ID) of the test the error relates to. :param errorClass: The fully qualified name of the error type. :param error: The string representation of the error. :param frames: The lines of the traceback associated with the error.

Parameters
amp:AMPUndocumented
testName:strUndocumented
errorClass:strUndocumented
error:strUndocumented
frames:List[str]Undocumented
async def addExpectedFailure(amp, testName, error, todo): (source)

Like addError but for expected failures.

:param amp: See addError :param testName: See addError :param error: The string representation of the expected failure. :param todo: The string description of the expectation.

Parameters
amp:AMPUndocumented
testName:strUndocumented
error:strUndocumented
todo:strUndocumented
async def addFailure(amp, testName, fail, failClass, frames): (source)
Parameters
amp:AMPUndocumented
testName:strUndocumented
fail:strUndocumented
failClass:strUndocumented
frames:List[str]Undocumented

Undocumented

Value
TypeVar('T')