Skip to main content

Use Jenkins Cucumber Report Plugin for Report Generation

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

This plugin allows Jenkins to publish the results as pretty html reports hosted by the Jenkins build server. In order for this plugin to work you must be using the JUnit runner and generating a json report. The plugin converts the json report into an overview html linking to separate feature file htmls with stats and results.

Step 1: Download .hpi file for the latest version from here 

Step 2: Open Jenkins and Go to Manage Jenkins ->Manage Plugins->Advanced

Step 3: Navigate to upload plugin and choose .hpi file and upload it and restart the Jenkins

Step 4: Go to Manage Jenkins->Manage Plugin->Installed 

Step 5: Select the plugin Checkbox and click on Restart when no Jenkins job is running

Step 6: Once restarted Navigate to your project->Configure and select Cucumber reports in Add post build actions. Click on Advance if you want to change default settings otherwise save it.

Step 7: Click on Build project. Once execution will finish you will see cucumber reports icon on project screen.

Step 8: Click on it to view the report. 

Video Tutorial

About

Elix is a premium wordpress theme for portfolio, freelancer, design agencies and a wide range of other design institutions.