Skip to main content

Generate All Cucumber reports Together

We can even generate all types of Cucumber Reports (HTML, JSON, XML) together and store that in desired directory.

Cucumber Runner

@CucumberOptions(
    plugin = {"pretty","junit:target/cucumber/cucumber.xml", "json:target/cucumber/cucumber.json","html:target/cucumber"},
    features = {"features"},
    glue={"com.pb.cucumbertest.stepdefinitions"},
    monochrome = true,
    strict = true,
    dryRun = false,
    tags = {"@singleargument"}
)

Output Directory Screenshot

cucumber generate all reports together

Here, index.html generates for html, cucumber.json for JSON report and cucumber.xml is generated for XML reports.

Video Tutorial

About

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