Lines Matching refs:test
93 def update_perf_info(self, test): argument
99 all_additional_keys = set(test.additional_info.keys())
104 benchmark_info['test_name'] = test.test_name
105 for key, data in test.additional_info.items():
281 def process_test_result(self, test): argument
287 if test.runner_name not in self.runners:
288 self.runners[test.runner_name] = OrderedDict()
289 assert self.runners[test.runner_name] != FAILURE_FLAG
290 self.all_test_results.append(test)
291 if test.group_name not in self.runners[test.runner_name]:
292 self.runners[test.runner_name][test.group_name] = RunStat()
293 self._print_group_title(test)
294 self._update_stats(test,
295 self.runners[test.runner_name][test.group_name])
296 self._print_result(test)
502 def _update_stats(self, test, group): argument
511 if test.status == test_runner_base.PASSED_STATUS:
514 elif test.status == test_runner_base.IGNORED_STATUS:
517 elif test.status == test_runner_base.ASSUMPTION_FAILED:
520 elif test.status == test_runner_base.FAILED_STATUS:
522 self.failed_tests.append(test.test_name)
524 elif test.status == test_runner_base.ERROR_STATUS:
527 self.run_stats.perf_info.update_perf_info(test)
529 def _print_group_title(self, test): argument
540 title = test.group_name or test.runner_name
545 def _print_result(self, test): argument
556 if not self.pre_test or (test.test_run_name !=
558 print('%s (%s %s)' % (au.colorize(test.test_run_name,
560 test.group_total,
561 'Test' if test.group_total <= 1 else 'Tests'))
562 if test.status == test_runner_base.ERROR_STATUS:
563 print('RUNNER ERROR: %s\n' % test.details)
564 self.pre_test = test
566 if test.test_name:
568 if test.status == test_runner_base.PASSED_STATUS:
572 elif test.status in (test_runner_base.IGNORED_STATUS,
580 print('[{}/{}] {}'.format(test.test_count,
581 test.group_total,
582 test.test_name), end='')
586 print(': {} {}'.format(au.colorize(test.status, color),
587 test.test_time))
588 if test.status == test_runner_base.PASSED_STATUS:
589 for key, data in test.additional_info.items():
593 if test.status == test_runner_base.FAILED_STATUS:
594 print('\nSTACKTRACE:\n%s' % test.details)
595 self.pre_test = test