mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
Only report first loop results.
This commit is contained in:
parent
474053d89c
commit
9922365106
2 changed files with 3 additions and 3 deletions
|
|
@ -28,7 +28,7 @@
|
|||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/cli/codeflash/main.py" />
|
||||
<option name="PARAMETERS" value="--file code_to_optimize/bubble_sort.py --verbose --module-root $PROJECT_DIR$/cli --function sorter --test-framework pytest --tests-root code_to_optimize/tests/pytest" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="true" />
|
||||
<option name="MODULE_MODE" value="false" />
|
||||
<option name="REDIRECT_INPUT" value="false" />
|
||||
<option name="INPUT_FILE" value="" />
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ class TestResults(BaseModel):
|
|||
passed = 0
|
||||
failed = 0
|
||||
for test_result in self.test_results:
|
||||
if test_result.test_executed():
|
||||
if test_result.loop_index == 1 and test_result.test_executed():
|
||||
if test_result.did_pass:
|
||||
passed += 1
|
||||
else:
|
||||
|
|
@ -110,7 +110,7 @@ class TestResults(BaseModel):
|
|||
for test_type in TestType:
|
||||
report[test_type] = {"passed": 0, "failed": 0}
|
||||
for test_result in self.test_results:
|
||||
if test_result.test_executed():
|
||||
if test_result.loop_index == 1 and test_result.test_executed():
|
||||
if test_result.did_pass:
|
||||
report[test_result.test_type]["passed"] += 1
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue