コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
ファイル: main.py プロジェクト: BreakawayConsulting/pystache
    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)
コード例 #4
0
ファイル: main.py プロジェクト: phihag/py3stache
    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)
コード例 #5
0
ファイル: parunittest.py プロジェクト: Huaguiyuan/gpawDFT
 def runTests(self):
     if self.testRunner is None:
         self.testRunner = ParallelTextTestRunner(verbosity=self.verbosity)
     TestProgram.runTests(self)
コード例 #6
0
ファイル: parunittest.py プロジェクト: eojons/gpaw-scme
 def runTests(self):
     if self.testRunner is None:
         self.testRunner = ParallelTextTestRunner(verbosity=self.verbosity)
     TestProgram.runTests(self)