Skip to content

Instantly share code, notes, and snippets.

@swapnil358
Last active April 13, 2021 20:47
@RunWith(Cucumber.class)
@CucumberOptions(
features = { "src/test/resources/parallel" },
glue = {"parallel" },monochrome = true, publish = true,
plugin = { "pretty",
"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:",
"timeline:test-output-thread/",
"json:Report/cucumber-reports/cucumber.json",
"html:target/cucumber-html-report",
"html:target/cucumber-reports/cucumber.xml"
}
)
public class MyTestRunner {
@BeforeClass
public static void beforeClass() {
System.out.println("I am in before class");
}
@AfterClass
public static void afterClass() {
new Report_Helper().onFinish();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment