PyDocs

Nav

Development Tools

TextTestRunner

  • TextTestRunner(stream=None, descriptions=True, verbosity=1, failfast=False, buffer=False, resultclass=None, warnings=None, *, tb_locals=False, durations=None)
A test runner class that displays results in textual form.

It prints out the names of tests as they are run, errors as they
occur, and a summary of the results at the end of the test run.
Changed in 3.2, 3.5, 3.12
  • 3.2: Added the warnings parameter.
  • 3.2: The default stream is set to sys.stderr at instantiation time rather than import time.
  • 3.5: Added the tb_locals parameter.
  • 3.12: Added the durations parameter.
Members of TextTestRunner

_

_makeResult
This method returns the instance of TestResult used by run().

r

run
Run the given test case or test suite.
0 Examples
No examples for unittest/TextTestRunner.
See Also
No see-alsos for unittest/TextTestRunner
0 Notes
No notes for TextTestRunner