def main():
  """Runs the integration tests for bq to vcf."""
  args = _get_args()
  test_configs = _get_test_configs()
  tests = []

  for test_case_configs in test_configs:
    test_cases = []
    for config in test_case_configs:
      test_cases.append(BqToVcfTestCase(args, ** config))
    tests.append(test_cases)
  test_runner = run_tests_common.TestRunner(tests)
  test_runner.run()
  return test_runner.print_results()
Ejemplo n.º 2
0
def main():
    args = _get_args()
    test_case_configs = _get_test_configs(args.run_presubmit_tests,
                                          args.run_all_tests)
    with TestContextManager(args) as context:
        tests = []
        for config in test_case_configs:
            tests.append(VcfToBQTestCase(context, **config))
        test_runner = run_tests_common.TestRunner(tests)
        if not context.revalidation_dataset_id:
            test_runner.run()
        for test in tests:
            test.validate_result()
    return test_runner.print_results()
def main():
  args = _get_args()
  test_configs = _get_test_configs(
      args.run_presubmit_tests, args.run_all_tests, args.test_file_suffix)
  with TestContextManager(args) as context:
    tests = []
    for test_case_configs in test_configs:
      test_cases = []
      for config in test_case_configs:
        if args.test_name_prefix:
          config['test_name'] = args.test_name_prefix + config['test_name']
        test_cases.append(VcfToBQTestCase(context, **config))
      tests.append(test_cases)
    test_runner = run_tests_common.TestRunner(
        tests, context.revalidation_dataset_id is not None)
    test_runner.run()
  return test_runner.print_results()