Exemplo n.º 1
0
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()
Exemplo n.º 2
0
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()