-
Notifications
You must be signed in to change notification settings - Fork 256
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
[jUnit formatter] Skipped steps are considered as errors #375
Comments
Hi @mdelapenya, thanks for the issue! @mpkorstanje, do you have any insight on how we do this for other Cucumber implementations. |
This is a rather complex issue:
|
I tried to use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We noticed that when a step fails in an scenario, subsequent steps are marked as skipped, which is OK imho.
When processing a test case (a scenario), all the steps that are skipped are included as errors (although having the
skipped
type). And because they are marked as error XML elements, we are not able to identify the root cause of why the scenario failed.But why? Because the CI (Jenkins) provides a higher ranking to errors than to failures, causing the UI to display the fist step error instead of the first failure, which is misleading. I.e.:
Thankfully we store the XML file and then we were able to read the real error, hid by the first error.
With the above XML file, I'd expect the UI to display the failure step. In fact, removing all errors simply keeping failures makes the UI to display the proper error message.
Note: we are aware that, potentially, it could be an issue in the Jenkins side where errors are overriding the real failure, but wanted to share here our expectations first.
The text was updated successfully, but these errors were encountered: