Skip to content

Instantly share code, notes, and snippets.

@burcuakkayaa
Created March 30, 2022 20:17
Show Gist options
  • Save burcuakkayaa/f0db45fbfef1a0ca112f2929959b36f1 to your computer and use it in GitHub Desktop.
Save burcuakkayaa/f0db45fbfef1a0ca112f2929959b36f1 to your computer and use it in GitHub Desktop.
package myTestRunners;
import io.cucumber.testng.AbstractTestNGCucumberTests;
import io.cucumber.testng.CucumberOptions;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
@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 TestRunner extends AbstractTestNGCucumberTests {
@BeforeTest
void beforeTest() {
}
@AfterTest
void AfterTest() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment