Skip to end of metadata
Go to start of metadata

Plugin Information

View Cucumber reports on the plugin site for more information.

Older versions of this plugin may not be safe to use. Please review the following warnings before using an older version:

Publish pretty cucumber reports

This is a Java Jenkins plugin which publishes pretty html reports showing the results of cucumber runs.

Configuration

Visit project website to check how can you configure the plugin and how powerful it is.

Screenshots

13 Comments

  1. Hi,

    This plug-in works very well with Jenkins.

    By chance, is there way to have API for this?

    When we run automation suite, it generate cucumber.json.

    Do we have API which converts 'cucumber.json' to Cucumber reports?

    API's are great way to help in this regard.

    Thanks,

    Uday

  2. Hi,

       it would be really useful to have the trend for feature duration.

       At least to have some API to retrieve the trend for each interested feature/scenario.

       This could help to have a benchmarking among the builds and following the evolution of the product under test.

    Thanks

    /B

  3. Is there a way to compare between Test Results between two Tests executions using this plugin?

  4. I am using this plugin in my Jenkins pipeline. It works like a charm for the successful test run scenarios.

    But whenever there is a failure scenario, no report is generated. Is this a bug or a configuration issue ?

    My pipeline code snippet is as follows --

     

    step([$class: 'CucumberReportPublisher', jsonReportDirectory: "./Build/temp/", jenkinsBasePath: '', fileIncludePattern: 'reports.json'])
  5. Hi, Could anyone please tell me how "Number of pending steps" field works? our requirement is , we need the over all status to be passed when report has Pending status. Please suggest.

    I have tried giving 9999 as the "Number of pending steps" and I have 7 pending steps in my scenario, but still the over all status is showing as Failed.

  6. This plugin works well for my execution. However, I am unable to view screenshots. I have in my code 

    public void tearDown(Scenario scenario) {
    if (scenario.isFailed()) {
    scenario.embed(driver.getScreenshotAs(OutputType.BYTES), "image/png");
    }

    }

    when a scenario fails, this code captures the screenshot and attaches to cucumber report when executed on local machine. 

    When I use the plugin to execute on jenkins, i do not know how or where to configure so that i can view screenshots.


    1. Hi Rahul, you can check the issue https://github.com/cucumber/cucumber-jvm/issues/1235 as it seems to be the same one that you described.

      1. it seems so. I am on vacation right now. I will check if the solution now applies.

      2. Sorry for late response.. was not on that long of vacation. (smile) Its not the same issue. 

    2. @After
      public void afterScenario(Scenario scenario) {
      String browser = System.getProperty("selenium.browser");
       LOGGER.debug("***** Executing After Scenario for " + scenario.getName() + " *****");
      if (driver != null) {
      if (scenario.isFailed()) {
       scenario.embed(driver.getScreenshot(), "image/png");
        }
      }

      }

       

      Works for me.

  7. Can any authors of the plugin fix this ASAP, I'm facing this issue a lot of times. https://github.com/jenkinsci/cucumber-reports-plugin/issues/213

  8. I have few Cucumber reports generated in Jenkins version 1.5 with older Cucumber report plug in. IS there any option to migrate those reports to new Jenkins 2.121 onward?