Package io.cucumber.core.cli
Class Main
- java.lang.Object
-
- io.cucumber.core.cli.Main
-
@API(status=STABLE) public class Main extends Object
Cucumber Main. Runs Cucumber as a CLI.Options can be provided in by (order of precedence):
- Command line arguments
- Properties from
System.getProperties()
- Properties from in
System.getenv()
- Properties from "cucumber.properties"
Constants
. For Command line optionsCommandlineOptions
.
-
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String... argv)
static byte
run(String... argv)
Launches the Cucumber-JVM command line.static byte
run(String[] argv, ClassLoader classLoader)
Launches the Cucumber-JVM command line.
-
-
-
Method Detail
-
main
public static void main(String... argv)
-
run
public static byte run(String... argv)
Launches the Cucumber-JVM command line.- Parameters:
argv
- runtime options. See details in thecucumber.api.cli.Usage.txt
resource.- Returns:
- 0 if execution was successful, 1 if it was not (test failures)
-
run
public static byte run(String[] argv, ClassLoader classLoader)
Launches the Cucumber-JVM command line.- Parameters:
argv
- runtime options. See details in thecucumber.api.cli.Usage.txt
resource.classLoader
- classloader used to load the runtime- Returns:
- 0 if execution was successful, 1 if it was not (test failures)
-
-