From 4d1639f4e5513945ac84ea5dbd242da6bb0f6058 Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Sun, 29 Dec 2013 23:38:55 +0000 Subject: [PATCH] Closes issue 20031. Document unittest.TextTestRunner.run method. --- Doc/library/unittest.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 63106242129..46d303ab639 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -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, \