Skip to content

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 #446

@dsharma8x8

Description

@dsharma8x8

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

OS Version - MacOS monterey 12.6.8
Jenkins Version - 2.346.3
Cucumber Reports Plugin Version - 5.7.3

Reproduction steps

  1. Add below property in yaml file for Cucumber Report under publish -
    publishers:
    • cucumber-reports:
      json-reports-path: ""
      file-include-pattern: '**/cucumber-report.json'
      failed-steps-number: 1
      skipped-steps-number: -1
      pending-steps-number: -1
      undefined-steps-number: -1
      failed-scenarios-number: -1
      failed-features-number: -1
      failed-scenarios-percentage: 100.0
      skipped-steps-percentage: 100.0
      failed-features-percentage: 100.0
      build-status: FAILURE
      sorting-method: ALPHABETICAL
  2. Run the Yaml file to reflect the changes in Jenkins job configuration
  3. Verify the cucumber Report configuration in job config

Expected Results

Cucumber report advance option in job config should show all the parameters defined in yaml file.

Actual Results

Below parameters are not reflecting in Jenkins job config for cucumber report -
failed-scenarios-percentage: 100.0
skipped-steps-percentage: 100.0
failed-features-percentage: 100.0
The value is for above properties is showing as default(Zero) instead of 100.0

Anything else?

Jenkins Documentation also don't have the mentioned percentage parameters for Cucumber Report -
https://jenkins-job-builder.readthedocs.io/en/latest/publishers.html#publishers.cucumber-reports

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions