I have created a small example to share with the community which shows usage for:
- extentreports-cucumber2-adapter
- extentreports-cucumber3-adapter
- extentreports-cucumber4-adapter
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"})
public class RunCukesTest {
}
- Now, to tell the adapter which reporters you will be using, add
extent.properties
undersrc/test/resources/
link