Esempio n. 1
0
def runAllUnitTests():
    """run all unittests."""
    _suite = unittest.TestSuite()
    _suite.addTest(pluginTestsSuite())
    _suite.addTest(reportTestsSuite())
    _suite.addTest(reportDialogTestsSuite())
    _suite.addTest(testTestsSuite())
    _suite.addTest(testerWidgetTestsSuite())
    _suite.addTest(selectorTestsSuite())
    _suite.addTest(translationsTestsSuite())
    unittest.TextTestRunner(verbosity=3, stream=sys.stdout).run(_suite)
Esempio n. 2
0
def unitTests():
    """return array of test suites."""
    _tests = []
    _tests.extend(pluginTestsSuite())
    _tests.extend(reportTestsSuite())
    _tests.extend(reportDialogTestsSuite())
    _tests.extend(testTestsSuite())
    _tests.extend(testerWidgetTestsSuite())
    _tests.extend(selectorTestsSuite())
    _tests.extend(translationsTestsSuite())
    return _tests