• Home
  • Raw
  • Download

Lines Matching refs:test

92     def update_perf_info(self, test):  argument
98 all_additional_keys = set(test.additional_info.keys())
103 benchmark_info['test_name'] = test.test_name
104 for key, data in test.additional_info.items():
278 def process_test_result(self, test): argument
284 if test.runner_name not in self.runners:
285 self.runners[test.runner_name] = OrderedDict()
286 assert self.runners[test.runner_name] != FAILURE_FLAG
287 self.all_test_results.append(test)
288 if test.group_name not in self.runners[test.runner_name]:
289 self.runners[test.runner_name][test.group_name] = RunStat()
290 self._print_group_title(test)
291 self._update_stats(test,
292 self.runners[test.runner_name][test.group_name])
293 self._print_result(test)
458 def _update_stats(self, test, group): argument
467 if test.status == test_runner_base.PASSED_STATUS:
470 elif test.status == test_runner_base.IGNORED_STATUS:
473 elif test.status == test_runner_base.ASSUMPTION_FAILED:
476 elif test.status == test_runner_base.FAILED_STATUS:
478 self.failed_tests.append(test.test_name)
480 elif test.status == test_runner_base.ERROR_STATUS:
483 self.run_stats.perf_info.update_perf_info(test)
485 def _print_group_title(self, test): argument
496 title = test.group_name or test.runner_name
500 def _print_result(self, test): argument
511 if not self.pre_test or (test.test_run_name !=
513 print('%s (%s %s)' % (au.colorize(test.test_run_name,
515 test.group_total,
516 'Test' if test.group_total <= 1 else 'Tests'))
517 if test.status == test_runner_base.ERROR_STATUS:
518 print('RUNNER ERROR: %s\n' % test.details)
519 self.pre_test = test
521 if test.test_name:
522 if test.status == test_runner_base.PASSED_STATUS:
525 print('[%s/%s] %s: %s %s' % (test.test_count,
526 test.group_total,
527 test.test_name,
529 test.status,
531 test.test_time))
532 for key, data in test.additional_info.items():
535 elif test.status == test_runner_base.IGNORED_STATUS:
537 print('[%s/%s] %s: %s %s' % (test.test_count, test.group_total,
538 test.test_name, au.colorize(
539 test.status, constants.MAGENTA),
540 test.test_time))
541 elif test.status == test_runner_base.ASSUMPTION_FAILED:
543 print('[%s/%s] %s: %s %s' % (test.test_count, test.group_total,
544 test.test_name, au.colorize(
545 test.status, constants.MAGENTA),
546 test.test_time))
549 print('[%s/%s] %s: %s %s' % (test.test_count, test.group_total,
550 test.test_name, au.colorize(
551 test.status, constants.RED),
552 test.test_time))
553 if test.status == test_runner_base.FAILED_STATUS:
554 print('\nSTACKTRACE:\n%s' % test.details)
555 self.pre_test = test