Package io.cucumber.testng
Class TestNGCucumberRunner
- java.lang.Object
-
- io.cucumber.testng.TestNGCucumberRunner
-
@API(status=STABLE) public final class TestNGCucumberRunner extends Object
Glue code for running Cucumber via TestNG.Options can be provided in by (order of precedence):
- Properties from
System.getProperties() - Properties from in
System.getenv() - Annotating the runner class with
CucumberOptions - Properties from "cucumber.properties"
Constants. - Properties from
-
-
Constructor Summary
Constructors Constructor Description TestNGCucumberRunner(Class<?> clazz)Bootstrap the cucumber runtime
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish()Object[][]provideScenarios()voidrunScenario(Pickle pickle)
-
-
-
Constructor Detail
-
TestNGCucumberRunner
public TestNGCucumberRunner(Class<?> clazz)
Bootstrap the cucumber runtime- Parameters:
clazz- Which has theCucumberOptionsandTestannotations
-
-
Method Detail
-
finish
public void finish()
-
provideScenarios
public Object[][] provideScenarios()
- Returns:
- returns the cucumber scenarios as a two dimensional array of
PickleWrapperscenarios combined with theirFeatureWrapperfeature.
-
-