Advance option properties for cucumber report is not reflecting in Jenkins UI through Yaml file

Hi Team,

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 -

  1. Percentage of skipped steps
  2. Percentage of failed scenarios
  3. 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.

Hello @sdeepakinfo2 and welcome to this community. :wave:

Which version of Jenkins and of the Cucumber reports plugin are you using?

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:

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

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

@poddingue @MarkEWaite I did not even find those percentage parameter in Jenkins documentation also -
https://jenkins-job-builder.readthedocs.io/en/latest/publishers.html#publishers.cucumber-reports

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.

1 Like

I have created the issue here - Advance option properties (skipped-steps-percentage, failed-scenarios-percentage & failed-features-percentage) for cucumber report is not reflecting in Jenkins Job Config through Yaml file · Issue #446 · jenkinsci/cucumber-reports-plugin · GitHub