eric5.DebugClients.Python3.DCTestResult

Module implementing a TestResult derivative for the eric5 debugger.

Global Attributes

None

Classes

DCTestResult A TestResult derivative to work with eric5's debug client.

Functions

None


DCTestResult

A TestResult derivative to work with eric5's debug client.

For more details see unittest.py of the standard python distribution.

Derived from

TestResult

Class Attributes

None

Class Methods

None

Methods

DCTestResult Constructor
addError Method called if a test errored.
addExpectedFailure Method called if a test failed expected.
addFailure Method called if a test failed.
addSkip Method called if a test was skipped.
addUnexpectedSuccess Method called if a test succeeded expectedly.
startTest Method called at the start of a test.
stopTest Method called at the end of a test.

Static Methods

None

DCTestResult (Constructor)

DCTestResult(parent)

Constructor

parent
The parent widget.

DCTestResult.addError

addError(test, err)

Method called if a test errored.

test
Reference to the test object
err
The error traceback

DCTestResult.addExpectedFailure

addExpectedFailure(test, err)

Method called if a test failed expected.

test
reference to the test object
err
error traceback

DCTestResult.addFailure

addFailure(test, err)

Method called if a test failed.

test
Reference to the test object
err
The error traceback

DCTestResult.addSkip

addSkip(test, reason)

Method called if a test was skipped.

test
reference to the test object
reason
reason for skipping the test (string)

DCTestResult.addUnexpectedSuccess

addUnexpectedSuccess(test)

Method called if a test succeeded expectedly.

test
reference to the test object

DCTestResult.startTest

startTest(test)

Method called at the start of a test.

test
Reference to the test object

DCTestResult.stopTest

stopTest(test)

Method called at the end of a test.

test
Reference to the test object
Up