Lines Matching refs:test
111 def update_perf_info(self, test): argument
117 all_additional_keys = set(test.additional_info.keys())
122 benchmark_info['test_name'] = test.test_name
123 for key, data in test.additional_info.items():
317 def process_test_result(self, test): argument
323 if test.runner_name not in self.runners:
324 self.runners[test.runner_name] = OrderedDict()
325 assert self.runners[test.runner_name] != FAILURE_FLAG
326 self.all_test_results.append(test)
327 if test.group_name not in self.runners[test.runner_name]:
328 self.runners[test.runner_name][test.group_name] = RunStat()
329 self._print_group_title(test)
330 self._update_stats(test, self.runners[test.runner_name][test.group_name])
331 self._print_result(test)
667 def _update_stats(self, test, group): argument
676 if test.status == test_runner_base.PASSED_STATUS:
679 elif test.status == test_runner_base.IGNORED_STATUS:
682 elif test.status == test_runner_base.ASSUMPTION_FAILED:
685 elif test.status == test_runner_base.FAILED_STATUS:
687 self.failed_tests.append(test.test_name)
689 elif test.status == test_runner_base.ERROR_STATUS:
692 self.run_stats.perf_info.update_perf_info(test)
694 def _print_group_title(self, test): argument
705 title = test.group_name or test.runner_name
710 def _print_result(self, test): argument
721 if not self.pre_test or (test.test_run_name != self.pre_test.test_run_name):
725 au.mark_blue(test.test_run_name),
726 test.group_total,
727 'Test' if test.group_total == 1 else 'Tests',
730 if test.status == test_runner_base.ERROR_STATUS:
731 print('RUNNER ERROR: %s\n' % test.details)
732 self.pre_test = test
734 if test.test_name:
736 if test.status == test_runner_base.PASSED_STATUS:
740 elif test.status in (
752 test.test_count, test.group_total, test.test_name
759 print(': {} {}'.format(au.colorize(test.status, color), test.test_time))
760 if test.status == test_runner_base.PASSED_STATUS:
761 for key, data in sorted(test.additional_info.items()):
764 if test.status == test_runner_base.FAILED_STATUS:
766 self.pre_test = test