File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 88N_TESTS_TO_GENERATE = 2
99TOTAL_LOOPING_TIME = 10.0 # 10 second candidate benchmarking budget
1010COVERAGE_THRESHOLD = 60.0
11+ MIN_TESTCASE_PASSED_THRESHOLD = 6
Original file line number Diff line number Diff line change 44
55from codeflash .cli_cmds .console import logger
66from codeflash .code_utils import env_utils
7- from codeflash .code_utils .config_consts import COVERAGE_THRESHOLD , MIN_IMPROVEMENT_THRESHOLD
7+ from codeflash .code_utils .config_consts import COVERAGE_THRESHOLD , MIN_IMPROVEMENT_THRESHOLD , MIN_TESTCASE_PASSED_THRESHOLD
88from codeflash .models .models import TestType
99
1010if TYPE_CHECKING :
@@ -50,7 +50,7 @@ def quantity_of_tests_critic(candidate_result: OptimizedCandidateResult) -> bool
5050 for test_type in report :
5151 pass_count += report [test_type ]["passed" ]
5252
53- if pass_count >= 4 :
53+ if pass_count >= MIN_TESTCASE_PASSED_THRESHOLD :
5454 return True
5555 # If only one test passed, check if it's a REPLAY_TEST
5656 return bool (pass_count == 1 and report [TestType .REPLAY_TEST ]["passed" ] == 1 )
You can’t perform that action at this time.
0 commit comments