Jenkins and Cucumber test reports
In this recipe, we integrate Jenkins and Cucumber to publish Cucumber reports using Jenkins.
Getting ready
Go to the Jenkins dashboard | Manage Jenkins
| Manage Plugins
| Available
.
Install the Cucumber reports
plugin:

Click on Install without restart
.
How to do it...
- Create a
Maven Project
in Jenkins. - Select any GitHub project that has Cucumber integrated in it and which generates a
.JSON
file as a report:

- Configure
Root POM
and the test goal in theBuild
section:

- Select
Cucumber reports
fromPost-build Actions
. - Add the
*.json
file that will be generated after the test execution:

- Save the build job.
- Click on
Build now
.
- Go to the
Console Output
and verify the test execution logs:

- On the
CucumberProject
dashboard, you will findTest Result Trend
and theCucumber reports
link:

- Click on the
Cucumber Reports
link:

- Check the steps, scenarios, and features-related graphs and data:

- Verify the
Feature Report
:

- Click on
Features
and check theFeature
,Scenario
, andSteps
in detail...