Lines Matching refs:rr
234 self.rr = result_reporter.ResultReporter()
245 self.assertTrue('someTestRunner' not in self.rr.runners)
246 self.rr.process_test_result(RESULT_PASSED_TEST)
247 self.assertTrue('someTestRunner' in self.rr.runners)
248 group = self.rr.runners['someTestRunner'].get('someTestModule')
255 self.rr.process_test_result(RESULT_FAILED_TEST)
261 self.rr.process_test_result(RESULT_PASSED_TEST_MODULE_2)
262 self.assertTrue('someTestModule2' in self.rr.runners['someTestRunner'])
266 self.rr.process_test_result(RESULT_PASSED_TEST_RUNNER_2_NO_MODULE)
267 self.assertTrue('someTestRunner2' in self.rr.runners)
273 rr = result_reporter.ResultReporter()
277 rr._print_result(test_runner_base.TestResult(
296 rr._print_result(test_runner_base.TestResult(
317 self.rr.register_unsupported_runner('NotSupported')
318 runner = self.rr.runners['NotSupported']
326 self.rr._update_stats(RESULT_PASSED_TEST, group)
327 self.assertEqual(self.rr.run_stats.passed, 1)
328 self.assertEqual(self.rr.run_stats.failed, 0)
329 self.assertEqual(self.rr.run_stats.run_errors, False)
330 self.assertEqual(self.rr.failed_tests, [])
337 self.rr._update_stats(RESULT_PASSED_TEST_MODULE_2, group2)
338 self.assertEqual(self.rr.run_stats.passed, 2)
339 self.assertEqual(self.rr.run_stats.failed, 0)
340 self.assertEqual(self.rr.run_stats.run_errors, False)
341 self.assertEqual(self.rr.failed_tests, [])
351 self.rr._update_stats(RESULT_PASSED_TEST, group)
354 self.rr._update_stats(RESULT_PASSED_TEST_MODULE_2, group2)
356 self.rr._update_stats(RESULT_FAILED_TEST, group)
357 self.assertEqual(self.rr.run_stats.passed, 2)
358 self.assertEqual(self.rr.run_stats.failed, 1)
359 self.assertEqual(self.rr.run_stats.run_errors, False)
360 self.assertEqual(self.rr.failed_tests, [RESULT_FAILED_TEST.test_name])
368 self.rr._update_stats(RESULT_RUN_FAILURE, group)
369 self.assertEqual(self.rr.run_stats.passed, 2)
370 self.assertEqual(self.rr.run_stats.failed, 1)
371 self.assertEqual(self.rr.run_stats.run_errors, True)
372 self.assertEqual(self.rr.failed_tests, [RESULT_FAILED_TEST.test_name])
379 self.rr._update_stats(RESULT_INVOCATION_FAILURE, group)
380 self.assertEqual(self.rr.run_stats.passed, 2)
381 self.assertEqual(self.rr.run_stats.failed, 1)
382 self.assertEqual(self.rr.run_stats.run_errors, True)
383 self.assertEqual(self.rr.failed_tests, [RESULT_FAILED_TEST.test_name])
393 self.rr._update_stats(RESULT_PASSED_TEST, group)
396 self.rr._update_stats(RESULT_PASSED_TEST_MODULE_2, group2)
398 self.rr._update_stats(RESULT_FAILED_TEST, group)
400 self.rr._update_stats(RESULT_RUN_FAILURE, group)
402 self.rr._update_stats(RESULT_INVOCATION_FAILURE, group)
404 self.rr._update_stats(RESULT_IGNORED_TEST, group)
405 self.assertEqual(self.rr.run_stats.passed, 2)
406 self.assertEqual(self.rr.run_stats.failed, 1)
407 self.assertEqual(self.rr.run_stats.run_errors, True)
408 self.assertEqual(self.rr.failed_tests, [RESULT_FAILED_TEST.test_name])
414 self.rr._update_stats(RESULT_IGNORED_TEST, group)
415 self.assertEqual(self.rr.run_stats.passed, 2)
416 self.assertEqual(self.rr.run_stats.failed, 1)
417 self.assertEqual(self.rr.run_stats.run_errors, True)
418 self.assertEqual(self.rr.failed_tests, [RESULT_FAILED_TEST.test_name])
425 self.rr._update_stats(RESULT_ASSUMPTION_FAILED_TEST, group)
428 self.rr._update_stats(RESULT_ASSUMPTION_FAILED_TEST, group)
437 self.rr.process_test_result(RESULT_PASSED_TEST)
438 self.assertEqual(0, self.rr.print_summary())
440 self.rr.process_test_result(RESULT_FAILED_TEST)
441 self.assertNotEqual(0, self.rr.print_summary())
443 self.rr.process_test_result(RESULT_PASSED_TEST_MODULE_2)
444 self.assertNotEqual(0, self.rr.print_summary())
452 self.rr.process_test_result(RESULT_PASSED_TEST)
453 self.assertEqual(0, self.rr.print_summary())
455 self.rr.process_test_result(RESULT_RUN_FAILURE)
456 self.assertNotEqual(0, self.rr.print_summary())
458 self.rr.process_test_result(RESULT_PASSED_TEST_MODULE_2)
459 self.assertNotEqual(0, self.rr.print_summary())
466 self.rr._update_stats(RESULT_PERF01_TEST01, group)
478 self.assertEqual(self.rr.run_stats.perf_info.perf_info,
481 self.rr._update_stats(RESULT_PERF01_TEST02, group)
491 self.assertEqual(self.rr.run_stats.perf_info.perf_info,
494 self.rr._update_stats(RESULT_PERF02_TEST01, group)
504 self.assertEqual(self.rr.run_stats.perf_info.perf_info,
507 self.rr._update_stats(RESULT_PERF01_TEST03_NO_CPU_TIME, group)
509 self.assertEqual(self.rr.run_stats.perf_info.perf_info,
515 self.rr._update_stats(RESULT_PERF01_TEST01, group)
516 self.rr._update_stats(RESULT_PERF01_TEST02, group)
517 self.rr._update_stats(RESULT_PERF02_TEST01, group)
546 classify_perf_info, max_len = self.rr.run_stats.perf_info._classify_perf_info()