-
-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect status being reported for skipped, pending, failed steps v16.0.3 #2152
Comments
Mmh, your expectations are at least partly wrong (IMHO):
|
Thanks @jenisys , was hoping to get some of my expectations clarified, as i wasn't 100% sure myself. Regarding skipped. Since the steps are being skipped because the step / scenario failed. Feels like it should be failed, since the reason for it being skipped is because the step failed? So
Scenario
|
Generally speaking the way to determine the result of a scenario is to take the worst status of its steps. The order being
If a scenario has no steps implementations currently vary a bit on what the outcome should be. |
HINT (just that we both have the correct understanding; as @mpkorstanje stated): |
Yea that sounds right to me. failed is caused by worst status So even though the last step is skipped, since the worst status is failed from previous steps, final status should be failed, rather than skipped. based on @mpkorstanje ordering Scenario Scenario Scenario Scenario |
Since you're using |
Ooops, sorry about that. Accidentally raised it here. Thanks for your feedback |
👓 What did you see?
I have "json": {"enabled": true,} and noticed a couple of issues regarding the status values in the json output file which seem incorrect
Wanted to check if these are expected or incorrect
Summary
1] I have a step that fails - steps[0].result.status = 'failed' but in the after block steps[1].result.status = 'skipped'
2] I have a step that is pending - steps[0].result.status = 'failed' ("error_message": "pending") but in the after block steps[1].result.status = 'skipped'
3] I have a step that returns skipped steps[0].result.status = 'passed' and the after block steps[1].result.status = 'passed'
4] I have a step that is undefined - steps[0].result.status = 'passed' but in the after block steps[1].result.status = 'passed'
✅ What did you expect to see?
1] I have a step that fails - steps[0].result.status = 'failed' after block steps[1].result.status = 'failed' - whole scenario failed
2] I have a step that is pending - steps[0].result.status = 'failed' ("error_message": "pending") but in the after block steps[1].result.status = 'failed' or "pending"
3] I have a step that returns skipped steps[0].result.status = 'skipped' and the after block steps[1].result.status = 'skipped'
4] I have a step that is undefined - steps[0].result.status = 'pending' but in the after block steps[1].result.status = 'pending'
📦 Which tool/library version are you using?
"cypress": "^12.16.0", | "@badeball/cypress-cucumber-preprocessor": "16.0.3",
🔬 How could we reproduce it?
Steps to reproduce the behavior:
Feature
📚 Any additional context?
Json output
This text was originally generated from a template, then edited by hand. You can modify the template here.
The text was updated successfully, but these errors were encountered: