The example is from the official Cucumber project.
Steps you need to follow to use the extentreports adapter for Cucumber JVM:
- Start with marking your runner with the adapter link:
@RunWith(Cucumber.class)
@CucumberOptions(plugin = {"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:", "json:target/cucumber-report.json"})
@Category(Example.class)
public class RunCukesTest {
}
- Now, to tell the adapter which reporters you will be using, add
extent.properties
undersrc/test/resources/
link