def test(options): """ Run all tests """ opts = {'verbosity': getattr(options, 'verbosity', 1)} # Subsuites to be added to the main suite python_suite = suites.PythonTestSuite('Python Tests', **opts) js_suite = suites.JsTestSuite('JS Tests', mode='run', with_coverage=True) # Main suite to be run all_unittests_suite = suites.TestSuite('All Tests', subsuites=[js_suite, python_suite]) all_unittests_suite.run()
def test(options, passthrough_options): """ Run all tests """ # Subsuites to be added to the main suite python_suite = suites.PythonTestSuite( 'Python Tests', passthrough_options=passthrough_options, **options.test) js_suite = suites.JsTestSuite('JS Tests', mode='run', with_coverage=True) # Main suite to be run all_unittests_suite = suites.TestSuite('All Tests', subsuites=[js_suite, python_suite]) all_unittests_suite.run()