Package test_suite :: Module relax_test_runner :: Class RelaxTestResult
[hide private]
[frames] | no frames]

Class RelaxTestResult

source code


A replacement for the TextTestResult class.

This class is designed to catch STDOUT and STDERR during the execution of each test and to prepend the output to the failure and error reports normally generated by TextTestRunner.

Instance Methods [hide private]
 
startTest(self, test)
Override of the TextTestResult.startTest() method.
source code
 
stopTest(self, test)
Override of the TextTestResult.stopTest() method.
source code
 
addError(self, test, err)
Override of the TestResult.addError() method.
source code
 
addFailure(self, test, err)
Override of the TestResult.addFailure() method.
source code

Inherited from unittest.runner.TextTestResult: __init__, addExpectedFailure, addSkip, addSuccess, addUnexpectedSuccess, getDescription, printErrorList, printErrors

Inherited from unittest.result.TestResult: __repr__, startTestRun, stop, stopTestRun, wasSuccessful

Inherited from unittest.result.TestResult (private): _count_relevant_tb_levels, _exc_info_to_string, _is_relevant_tb_level

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from unittest.runner.TextTestResult: separator1, separator2

Inherited from unittest.result.TestResult (private): _moduleSetUpFailed, _previousTestClass, _testRunEntered

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

startTest(self, test)

source code 

Override of the TextTestResult.startTest() method.

The start of STDOUT and STDERR capture occurs here.

Overrides: unittest.result.TestResult.startTest

stopTest(self, test)

source code 

Override of the TextTestResult.stopTest() method.

The end of STDOUT and STDERR capture occurs here.

Overrides: unittest.result.TestResult.stopTest

addError(self, test, err)

source code 

Override of the TestResult.addError() method.

The STDOUT and STDERR captured text is prepended to the error text here.

Overrides: unittest.result.TestResult.addError

addFailure(self, test, err)

source code 

Override of the TestResult.addFailure() method.

The STDOUT and STDERR captured text is prepended to the failure text here.

Overrides: unittest.result.TestResult.addFailure