Closed roskee closed 6 months ago
# summary Inferred base version: v0.13.0 Suggested version: v0.13.1
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
c61a939
) 82.94% compared to head (542691e
) 82.93%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@vearutop Is there anything I should update before you can approve this?
@roskee thank you for fixing this!
🤔 What's changed?
I have updated the step evaluation in the base formatter to not set a scenario as passed just because some step has passed. A scenario, after this change, will only be passed only if no steps exist that are
failed
,pending
orundefined
in that scenario.⚡️ What's your motivation?
Issue #581 was created because of this. I was able to reproduce it easily. All I had to do was update the [api test feature] like the following (only updated the
method not allowed
tomethod allowed
The summary for the above change is as follows
As it can be seen from the picture, the total scenarios (2) does not much the sum of passed (2) and failed (1) scenarios. This is due to the steps overriding the scenario status. That is, if a failed step is evaluated first, it will set the scenario as failed. but the next passing step will override that state and make it as passed. But when the summary is prepared the number of failed scenarios is evaluated as the number of failed steps (since a failed step will always lead to a failed scenario and other dependent steps are skipped, this logic works). This leads to the incorrect sum in the above result.
🏷️ What kind of change is this?
♻️ Anything particular you want feedback on?
I am not sure if this issue is only on the base formatter implementation. If there are any other implementations of the formatter I should look into, please let me know :pray:
📋 Checklist:
This text was originally generated from a template, then edited by hand. You can modify the template here.