Skip to content

Instantly share code, notes, and snippets.

@burcuakkayaa
Created March 30, 2022 20:09
Show Gist options
  • Save burcuakkayaa/17558673b9b274c88172fb00d181c4fd to your computer and use it in GitHub Desktop.
Save burcuakkayaa/17558673b9b274c88172fb00d181c4fd to your computer and use it in GitHub Desktop.
package myTestRunners;
import io.cucumber.junit.Cucumber;
import io.cucumber.testng.CucumberOptions;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/test/resources/functionalTests",
glue= {"myStepDefinitions" , "myHooks"},
tags = "@chrome",
plugin = { "com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:",
"timeline:test-output-thread/",
"rerun:src/test/resources/failedrerun.txt"},
monochrome = true,
publish = true
)
public class TestRunnerWithJunit {
@BeforeClass
void beforeClass() {
}
@AfterClass
void afterClass() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment