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

type RelaxTestRunner

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, io_capture=True)
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

Class Variables [hide private]
  category = None
Method Details [hide private]

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

source code 

Initialise the class, storing the timing flag.

Parameters:
  • stream (writable object) - The IO stream to write all output to.
  • descriptions (bool) - A flag which if True will cause the test description to be printed out, when the verbosity is > 1.
  • verbosity (int) - The verbosity level.
  • timing (bool) - A flag which if True will enable timing of individual tests.
  • io_capture (bool) - A flag which if True will cause all IO to be captured and only printed out for failing or error tests.
Overrides: unittest.runner.TextTestRunner.__init__

_makeResult(self)

source code 

Override of the TextTestRunner._makeResult() method.

Overrides: unittest.runner.TextTestRunner._makeResult