We are not able to implement/override few advance options present in cucumber report like skipped-steps-percentage, failed-scenarios-percentage & failed-features-percentage we have to assign these property value as 100.0 but the changes of yaml file are not reflecting in Jenkins UI.
We want below advance options parameters under cucumber reports under build results -
Percentage of skipped steps
Percentage of failed scenarios
Percentage of failed features
These 3 parameters should have value as 100.0
We have given these property in yaml file under cucumber-reports: options like this -
cucumber-reports:
json-reports-path: “”
file-include-pattern: ‘**/cucumber-report.json’
failed-steps-number: 1
skipped-steps-number: -1
skipped-fails: true
no-flash-charts: true
ignore-failed-tests: true failed-scenarios-percentage: 100.0 skipped-steps-percentage: 100.0 failed-features-percentage: 100.0
but it is showing as 0.0 in Jenkins UI for those last 3 percentage properties. Can anyone please help here. @MarkEWaite could you please guide here.
Your YAML configuration appears to be mostly correct, but there might be an issue with the quotes around the property values. Use straight double quotes (" ) instead of curly double quotes (“” ) to enclose the values. It should look like this:
Thanks @poddingue
I have checked my yaml file and seems the quotes are correct only. i am using double quotes only. May be it got changed while posting this issue here. We are using Jenkins 2.346.3 Version.
And for cucumber reports plugin version, seems I do not have admin rights to check the cucumber reports plugin version. I will check with the admin and get back to you.
Is there anything else which can cause these below properties to reflect in Jenkins UI other than version issue -
failed-scenarios-percentage: 100.0
skipped-steps-percentage: 100.0
failed-features-percentage: 100.0
You’re encouraged to submit a documentation pull request to that repository with the updated information or submit an issue report to the issue tracker for the Cucumber reports plugin in hopes that others will submit a documentation pull request.
Also, it is generally better to not specifically mention people by name unless they are already involved in the conversation. We’re all volunteers and may not want the disruption of being mentioned in a conversation that we’ve not joined.