def runTests(self): # Pick HTMLTestRunner as the default test runner. # base class's testRunner parameter is not useful because it means # we have to instantiate HTMLTestRunner before we know self.verbosity. if self.testRunner is None: self.testRunner = HTMLTestRunner(verbosity=self.verbosity) TestProgram.runTests(self)
def runTests(self): # self.test is a unittest.TestSuite instance: # http://docs.python.org/library/unittest.html#unittest.TestSuite tests = self.test if self._text_doctest_dir is not None: doctest_suites = get_doctests(self._text_doctest_dir) tests.addTests(doctest_suites) if self._spec_test_dir is not None: spec_testcases = get_spec_tests(self._spec_test_dir) tests.addTests(spec_testcases) TestProgram.runTests(self)
def runTests(self): if self.testRunner is None: self.testRunner = ParallelTextTestRunner(verbosity=self.verbosity) TestProgram.runTests(self)