Ejemplo n.º 1
0
def _RunJUnitTests(options, error_func):
    """Subcommand of RunTestsCommand which runs junit tests."""
    junit_options = ProcessJUnitTestOptions(options, error_func)
    runner_factory, tests = junit_setup.Setup(junit_options)
    _, exit_code = junit_dispatcher.RunTests(tests, runner_factory)

    return exit_code
Ejemplo n.º 2
0
def _RunJUnitTests(args):
    """Subcommand of RunTestsCommand which runs junit tests."""
    runner_factory, tests = junit_setup.Setup(args)
    results, exit_code = junit_dispatcher.RunTests(tests, runner_factory)

    report_results.LogFull(results=results,
                           test_type='JUnit',
                           test_package=args.test_suite)

    return exit_code
def _RunJUnitTests(args):
  """Subcommand of RunTestsCommand which runs junit tests."""
  runner_factory, tests = junit_setup.Setup(args)
  _, exit_code = junit_dispatcher.RunTests(tests, runner_factory)
  return exit_code