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

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

Open
dsharma8x8 opened this issue Sep 12, 2023 · 4 comments
Labels

Comments

@dsharma8x8
Copy link

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

@dsharma8x8 dsharma8x8 added the bug label Sep 12, 2023
@damianszczepanik
Copy link
Member

Add some reference how Jenkins supports yaml format in case of configuration

@dsharma8x8
Copy link
Author

dsharma8x8 commented Sep 20, 2023

Add some reference how Jenkins supports yaml format in case of configuration

It should be like this in yaml -
Please refer last 3 percentage parameters, which Jenkins should support for Cucumber config.

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
          build-status: FAILURE
          sorting-method: ALPHABETICAL
          failed-scenarios-percentage: 100.0
          skipped-steps-percentage: 100.0
          failed-features-percentage: 100.0

@damianszczepanik
Copy link
Member

All configurations are developed

public void setSkippedStepsPercentage(double skippedStepsPercentage) {
so I believe percentage can be configured as well

@dsharma8x8
Copy link
Author

Thanks @damianszczepanik for the update. I will verify it and keep you posted.
Thank You!

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

No branches or pull requests

2 participants