Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

How to Generate Json Report with Cucumber?

Category: BDD Cucumber

For JSON reports, add json:target/cucumber-reports/Cucumber.json to the @CucumberOptions plugin option.

@CucumberOptions(
	features = "src/test/resources/functionalTests",
	glue= {"stepDefinitions"},
	plugin = { "pretty", "json:target/cucumber-reports/Cucumber.json" },
	monochrome = true
)

Leave a Reply

Your email address will not be published. Required fields are marked *