Use Maven Cucumber Reporting Plugin to generate extended HTML Reports

Steps To Configure Maven Cucumber Reporting Plugin:

Add the below plugin to pom.xml

<projectName>: Project name which will be displayed at the top of the report

<skip>: Report Generation can be skipped

<outputDirectory>: Path of the directory where reports will be generated

<inputDirectory>: Path of the directory where Cucumber xml report will be generated


Make sure the Cucumber Runner File contains the JSON Reporting Plugin. Also the path should be same as the <inputDirectory> mentioned above

        plugin = {"pretty",
        features = {"src/test/resources/features"},
        glue = {"com.example.StepDefinitions"},
        tags = "@regression"

public class TestRunner extends AbstractTestNGCucumberTests {

Run the project from the command line by using the below maven command:

mvn clean install

After execution is completed, reports will be generated in the output directory “reports/html-reports/cucumber-html-reports”.

Open the overview-features.html  file in any browser. It should look like below:




Bijan Patel

Founder & Creator of QAScript | 12+ years of IT Experience | Full Stack Automation Engineer | Blogger | Trainer

You may also like...

1 Response

  1. Aarti says:

    Thank you so much! it helped me.

Leave a Reply

Your email address will not be published.