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

Class GuiTestRunner

source code


A replacement unittest runner.

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

Nested Classes [hide private]

Inherited from unittest.runner.TextTestRunner: resultclass

Instance Methods [hide private]
 
__init__(self, stream=sys.stderr, descriptions=True, verbosity=1, failfast=False, buffer=False, resultclass=None, timing=False)
Initialise the class, storing the timing flag.
source code
 
_makeResult(self)
Override of the TextTestRunner._makeResult() method.
source code

Inherited from unittest.runner.TextTestRunner: run

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, stream=sys.stderr, descriptions=True, verbosity=1, failfast=False, buffer=False, resultclass=None, timing=False)
(Constructor)

source code 

Initialise the class, storing the timing flag.

Parameters:
  • timing (bool) - A flag which if True will enable timing of individual tests.
Overrides: object.__init__

_makeResult(self)

source code 

Override of the TextTestRunner._makeResult() method.

Overrides: unittest.runner.TextTestRunner._makeResult