def test_get_run_results_checker_id_and_file_path(self): """ Get all the run results and compare with the results in the project config. """ runid = self._runid logging.debug('Get all run results from the db for runid: ' + str(runid)) run_result_count = self._cc_client.getRunResultCount(runid, []) self.assertTrue(run_result_count) run_results = self._cc_client.getRunResults(runid, run_result_count, 0, [], []) self.assertIsNotNone(run_results) print_run_results(run_results) self.assertEqual(run_result_count, len(run_results)) not_found = find_all(run_results, self._testproject_data['bugs']) if not_found: print('Not found bugs:') for bug in not_found: print(bug) self.assertTrue(len(not_found) == 0)
def test_get_run_results_checker_id_and_file_path(self): """ Test if all the bugs are found based on the test project configuration. """ runid = self._runid logging.debug('Get all run results from the db for runid: ' + str(runid)) run_result_count = self._cc_client.getRunResultCount(runid, []) self.assertTrue(run_result_count) run_results = get_all_run_results(self._cc_client, runid) self.assertIsNotNone(run_results) self.assertEqual(run_result_count, len(run_results)) not_found = find_all(run_results, self._testproject_data['bugs']) print_run_results(run_results) if not_found: print('Not found bugs:') for bug in not_found: print(bug) self.assertTrue(len(not_found) == 0)