See here for complete docs.
To begin using the adapter, add the com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter plugin to the runner.
@RunWith(Cucumber.class)
@CucumberOptions(plugin = {"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"})
public class RunCukesTest {
// ..
}
Screenshots can be saved to a specified in extent.properties
using:
screenshot.dir=test-output/
The below setting can be used to specify the relative path from the saved HTML file to link screenshots:
screenshot.rel.path=../
To learn more about this, refer to #20.
ExtentReports plugin for Cucumber v4 is Open Source software and released under Apache-2.0.