Class Constants
- java.lang.Object
-
- io.cucumber.core.options.Constants
-
public final class Constants extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringANSI_COLORS_DISABLED_PROPERTY_NAMEProperty name used to disable ansi colors in the output (not supported by all terminals): "cucumber.ansi-colors.disabled"static StringCUCUMBER_PROPERTIES_FILE_NAMEFile name of cucumber properties file: "cucumber.properties"static StringEXECUTION_DRY_RUN_PROPERTY_NAMEProperty name used to enable dry-run: "cucumber.execution.dry-run"static StringEXECUTION_LIMIT_PROPERTY_NAMEProperty name used to enable dry-run: "cucumber.execution.limit"static StringEXECUTION_ORDER_PROPERTY_NAMEProperty name used to set execution order: "cucumber.execution.order"static StringEXECUTION_STRICT_PROPERTY_NAMEProperty name used to enable strict execution: "cucumber.execution.strict"static StringFEATURES_PROPERTY_NAMEProperty name used to set feature location: "cucumber.features"static StringFILTER_NAME_PROPERTY_NAMEProperty name used to set name filter: "cucumber.filter.name"static StringFILTER_TAGS_PROPERTY_NAMEProperty name used to set tag filter: "cucumber.filter.tags"static StringGLUE_PROPERTY_NAMEProperty name to set the glue path: "cucumber.glue"static StringOBJECT_FACTORY_PROPERTY_NAMEProperty name used to select a specific object factory implementation: "cucumber.object-factory"static StringOPTIONS_PROPERTY_NAMEProperty name used to pass command line options: "cucumber.options"static StringPLUGIN_PROPERTY_NAMEProperty name to enable plugins: "cucumber.plugin"static StringSNIPPET_TYPE_PROPERTY_NAMEProperty name to control naming convention for generated snippets: "cucumber.snippet-type"static StringWIP_PROPERTY_NAMEProperty name used to enable wip execution: "cucumber.execution.wip"
-
-
-
Field Detail
-
ANSI_COLORS_DISABLED_PROPERTY_NAME
public static final String ANSI_COLORS_DISABLED_PROPERTY_NAME
Property name used to disable ansi colors in the output (not supported by all terminals): "cucumber.ansi-colors.disabled"Ansi colors are enabled by default.
- See Also:
- Constant Field Values
-
CUCUMBER_PROPERTIES_FILE_NAME
public static final String CUCUMBER_PROPERTIES_FILE_NAME
File name of cucumber properties file: "cucumber.properties"- See Also:
- Constant Field Values
-
EXECUTION_DRY_RUN_PROPERTY_NAME
public static final String EXECUTION_DRY_RUN_PROPERTY_NAME
Property name used to enable dry-run: "cucumber.execution.dry-run"When using dry run Cucumber will skip execution of glue code.
By default, dry-run is disabled
- See Also:
- Constant Field Values
-
EXECUTION_LIMIT_PROPERTY_NAME
public static final String EXECUTION_LIMIT_PROPERTY_NAME
Property name used to enable dry-run: "cucumber.execution.limit"Limits the number of scenarios to be executed to a specific amount.
By default scenarios are executed.
- See Also:
- Constant Field Values
-
EXECUTION_ORDER_PROPERTY_NAME
public static final String EXECUTION_ORDER_PROPERTY_NAME
Property name used to set execution order: "cucumber.execution.order"Valid values are
lexical,reverse,randomorrandom:[seed].By default features are executed in lexical file name order
- See Also:
- Constant Field Values
-
EXECUTION_STRICT_PROPERTY_NAME
public static final String EXECUTION_STRICT_PROPERTY_NAME
Property name used to enable strict execution: "cucumber.execution.strict"When using strict execution Cucumber will treat undefined and pending steps as errors.
By default, strict execution is disabled
- See Also:
- Constant Field Values
-
WIP_PROPERTY_NAME
public static final String WIP_PROPERTY_NAME
Property name used to enable wip execution: "cucumber.execution.wip"When using wip execution Cucumber will fail if there are any passing scenarios.
By default, wip execution is disabled
- See Also:
- Constant Field Values
-
FEATURES_PROPERTY_NAME
public static final String FEATURES_PROPERTY_NAME
Property name used to set feature location: "cucumber.features"A comma separated list of:
path/to/dir- Load the files with the extension ".feature" for the directorypathand its sub directories.path/name.feature- Load the feature filepath/name.featurefrom the file system.classpath:path/name.feature- Load the feature filepath/name.featurefrom the classpath.path/name.feature:3:9- Load the scenarios on line 3 and line 9 in the filepath/name.feature.@path/file- Loadpath/filefrom the file system and parse feature paths.@classpath:path/file- Loadpath/filefrom the classpath and parse feature paths.
- See Also:
FeatureWithLines, Constant Field Values
-
FILTER_NAME_PROPERTY_NAME
public static final String FILTER_NAME_PROPERTY_NAME
Property name used to set name filter: "cucumber.filter.name"Filters features based on the provided regex pattern.
By default no features are filtered
- See Also:
- Constant Field Values
-
FILTER_TAGS_PROPERTY_NAME
public static final String FILTER_TAGS_PROPERTY_NAME
Property name used to set tag filter: "cucumber.filter.tags"Filters scenarios based on the provided tag expression e.g:
@Integration and not @Ignored. Scenarios that do not match the expression are not executed.By default all scenarios are executed
- See Also:
- Constant Field Values
-
GLUE_PROPERTY_NAME
public static final String GLUE_PROPERTY_NAME
Property name to set the glue path: "cucumber.glue"A comma separated list of a classpath uri or package name e.g.:
com.example.app.steps.- See Also:
GluePath, Constant Field Values
-
OBJECT_FACTORY_PROPERTY_NAME
public static final String OBJECT_FACTORY_PROPERTY_NAME
Property name used to select a specific object factory implementation: "cucumber.object-factory"- See Also:
ObjectFactoryServiceLoader, Constant Field Values
-
OPTIONS_PROPERTY_NAME
public static final String OPTIONS_PROPERTY_NAME
Property name used to pass command line options: "cucumber.options"When available it is recommended to use a property based alternative.
- See Also:
RuntimeOptionsParser, Constant Field Values
-
PLUGIN_PROPERTY_NAME
public static final String PLUGIN_PROPERTY_NAME
Property name to enable plugins: "cucumber.plugin"A comma separated list of
[PLUGIN[:PATH_OR_URL]]e.g:json:target/cucumber.json.Built-in formatter PLUGIN types:
- html
- pretty
- progress
- summary
- json
- usage
- rerun
- junit
- testng
PLUGINcan also be a fully qualified class name, allowing registration of 3rd party plugins.- See Also:
- Constant Field Values
-
SNIPPET_TYPE_PROPERTY_NAME
public static final String SNIPPET_TYPE_PROPERTY_NAME
Property name to control naming convention for generated snippets: "cucumber.snippet-type"Valid values are
underscoreorcamelcase.By defaults are generated using the under score naming convention.
- See Also:
- Constant Field Values
-
-