We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb2d2a3 + c0bd121 commit c7e0255Copy full SHA for c7e0255
codeflash/result/critic.py
@@ -56,8 +56,8 @@ def quantity_of_tests_critic(candidate_result: OptimizedCandidateResult) -> bool
56
57
if pass_count >= MIN_TESTCASE_PASSED_THRESHOLD:
58
return True
59
- # If only one test passed, check if it's a REPLAY_TEST
60
- return bool(pass_count == 1 and report[TestType.REPLAY_TEST]["passed"] == 1)
+ # If one or more tests passed, check if least one of them was a successful REPLAY_TEST
+ return bool(pass_count >= 1 and report[TestType.REPLAY_TEST]["passed"] >= 1)
61
62
63
def coverage_critic(original_code_coverage: CoverageData | None, test_framework: str) -> bool:
0 commit comments