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
Here, index.html generates for html, cucumber.json for JSON report and cucumber.xml is generated for XML reports.
- Log in to post comments