Ejemplo n.º 1
0
 def run_mutation_test_runner(self, suite, total_duration):
     live_time = self.timeout_factor * (total_duration if total_duration > 1 else 1)
     test_runner_class = utils.get_mutation_test_runner_class()
     test_runner = test_runner_class(suite=suite)
     with self.stdout_manager:
         test_runner.start()
         result = test_runner.get_result(live_time)
         test_runner.terminate()
     return result
Ejemplo n.º 2
0
 def run_mutation_test_runner(self, suite, total_duration):
     live_time = self.timeout_factor * (total_duration if total_duration > 1 else 1)
     test_runner_class = utils.get_mutation_test_runner_class()
     test_runner = test_runner_class(suite=suite)
     with self.stdout_manager:
         test_runner.start()
         result = test_runner.get_result(live_time)
         test_runner.terminate()
     return result
Ejemplo n.º 3
0
 def store_init_modules(self):
     test_runner_class = utils.get_mutation_test_runner_class()
     test_runner = test_runner_class(suite=unittest.TestSuite())
     test_runner.start()
     self.init_modules = list(sys.modules.keys())
Ejemplo n.º 4
0
 def store_init_modules(self):
     test_runner_class = utils.get_mutation_test_runner_class()
     test_runner = test_runner_class(suite=unittest.TestSuite())
     test_runner.start()
     self.init_modules = list(sys.modules.keys())
Ejemplo n.º 5
0
 def find_init_modules(self):
     test_runner_class = utils.get_mutation_test_runner_class()
     test_runner = test_runner_class(suite=self.create_empty_test_suite())
     test_runner.start()
     test_runner.terminate()
     return list(sys.modules.keys())