Generator: reuse previous executor
To re-execute all generated tests, both from passing and failing test
suites, we reuse the previously instantiated executor to avoid missing
any covered statements, e.g., from imports.
Closes
@@ -169,8 +169,7 @@ class Pynguin:
test_suite = tsc.TestSuiteChromosome()
test_suite.add_tests(test_chromosome.test_chromosomes)
test_suite.add_tests(failing_test_chromosome.test_chromosomes)
- re_executor = TestCaseExecutor()
- result = re_executor.execute_test_suite(test_suite)
+ result = executor.execute_test_suite(test_suite)
export_timer = Timer(name="Export time", logger=None)
export_timer.start()
