Closes issue 20031. Document unittest.TextTestRunner.run method.
This commit is contained in:
parent
2691ee6183
commit
4d1639f4e5
|
@ -1939,6 +1939,14 @@ Loading and running tests
|
|||
|
||||
stream, descriptions, verbosity
|
||||
|
||||
.. method:: run(test)
|
||||
|
||||
This method is the main public interface to the `TextTestRunner`. This
|
||||
method takes a :class:`TestSuite` or :class:`TestCase` instance. A
|
||||
:class:`TestResult` is created by calling
|
||||
:func:`_makeResult` and the test(s) are run and the
|
||||
results printed to stdout.
|
||||
|
||||
|
||||
.. function:: main(module='__main__', defaultTest=None, argv=None, testRunner=None, \
|
||||
testLoader=unittest.defaultTestLoader, exit=True, verbosity=1, \
|
||||
|
|
Loading…
Reference in New Issue