Skip to content
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

Skipped scenarios are marked as failure instead of Skipped status in Jenkins Cucumber Report #211

Open
sujithmathew93 opened this issue Apr 26, 2022 · 3 comments

Comments

@sujithmathew93
Copy link

sujithmathew93 commented Apr 26, 2022

Incase there are some scenarios that are skipped in the cucumber hooks and all the steps are skipped, the Jenkins Cucumber Report generated using the plugin marks these test cases as failed instead of skipped. Is there any configuration or alternate way to make these tests as pending/skipped instead of fail, something similar to setting 'setSkippedAsNotFailing' as true in POM configuration.

@damianszczepanik
Copy link
Owner

Attach JSON file for reference

@sujithmathew93
Copy link
Author

sujithmathew93 commented May 5, 2022

[](url
cucumberJSON.zip
)

Please note that skiped scenario is showing as failed in Jenkins using the Cucumber Report Plugin.

I was able to mark it as pass in the report generated within the project by adding the configuration in POM: 'setSkippedAsNotFailing' as true

@sujithmathew93 sujithmathew93 changed the title Skipped scenarios are marked as failure instead of Skipped status Skipped scenarios are marked as failure instead of Skipped status in Jenkins Cucumber Report May 5, 2022
@damianszczepanik
Copy link
Owner

So this is about how the report is presented and now if the build has failed ?
If so I think you are right. You can configure this using https://github.com/damianszczepanik/cucumber-reporting/blob/master/src/main/java/net/masterthought/cucumber/Configuration.java#L318 but this is not available for plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants