Package io.cucumber.core.cli
Class Main
java.lang.Object
io.cucumber.core.cli.Main
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 options
CommandlineOptions
.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
-
run
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
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)
-