public final class Constants extends Object
Modifier and Type | Field and Description |
---|---|
static 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"
|
static String |
CUCUMBER_PROPERTIES_FILE_NAME
File name of cucumber properties file: "cucumber.properties"
|
static String |
EXECUTION_DRY_RUN_PROPERTY_NAME
Property name used to enable dry-run: "cucumber.execution.dry-run"
|
static String |
EXECUTION_LIMIT_PROPERTY_NAME
Property name used to enable dry-run: "cucumber.execution.limit"
|
static String |
EXECUTION_ORDER_PROPERTY_NAME
Property name used to set execution order: "cucumber.execution.order"
|
static String |
EXECUTION_STRICT_PROPERTY_NAME
Property name used to enable strict execution: "cucumber.execution.strict"
|
static String |
FEATURES_PROPERTY_NAME
Property name used to set feature location: "cucumber.features"
|
static String |
FILTER_NAME_PROPERTY_NAME
Property name used to set name filter: "cucumber.filter.name"
|
static String |
FILTER_TAGS_PROPERTY_NAME
Property name used to set tag filter: "cucumber.filter.tags"
|
static String |
GLUE_PROPERTY_NAME
Property name to set the glue path: "cucumber.glue"
|
static String |
OBJECT_FACTORY_PROPERTY_NAME
Property name used to select a specific object factory implementation:
"cucumber.object-factory"
|
static String |
OPTIONS_PROPERTY_NAME
Property name used to pass command line options: "cucumber.options"
|
static String |
PLUGIN_PROPERTY_NAME
Property name to enable plugins: "cucumber.plugin"
|
static String |
SNIPPET_TYPE_PROPERTY_NAME
Property name to control naming convention for generated snippets: "cucumber.snippet-type"
|
static String |
WIP_PROPERTY_NAME
Property name used to enable wip execution: "cucumber.execution.wip"
|
public static final String ANSI_COLORS_DISABLED_PROPERTY_NAME
Ansi colors are enabled by default.
public static final String CUCUMBER_PROPERTIES_FILE_NAME
public static final String EXECUTION_DRY_RUN_PROPERTY_NAME
When using dry run Cucumber will skip execution of glue code.
By default, dry-run is disabled
public static final String EXECUTION_LIMIT_PROPERTY_NAME
Limits the number of scenarios to be executed to a specific amount.
By default scenarios are executed.
public static final String EXECUTION_ORDER_PROPERTY_NAME
Valid values are reverse
, random
or random:[seed]
.
By default features are executed in lexical file name order
public static final String EXECUTION_STRICT_PROPERTY_NAME
When using strict execution Cucumber will treat undefined and pending steps as errors.
By default, strict execution is disabled
public static final String WIP_PROPERTY_NAME
When using wip execution Cucumber will fail if there are any passing scenarios.
By default, wip execution is disabled
public static final String FEATURES_PROPERTY_NAME
A comma separated list of:
path/to/dir
- Load the files with the extension ".feature" for the
directory path
and its sub directories.
path/name.feature
- Load the feature file path/name.feature
from the file system.classpath:path/name.feature
- Load the feature file
path/name.feature
from the classpath.path/name.feature:3:9
- Load the scenarios on line 3 and line 9 in
the file path/name.feature
.@path/file
- Load path/file
from the file system and parse
feature paths.@classpath:path/file
- Load path/file
from the classpath and
parse feature paths.FeatureWithLines
,
Constant Field Valuespublic static final String FILTER_NAME_PROPERTY_NAME
Filters features based on the provided regex pattern.
By default no features are filtered
public static final String FILTER_TAGS_PROPERTY_NAME
Filters features based on the provided tag expression e.g:
@Integration and not @Ignored
.
By default no features are filtered
public static final String GLUE_PROPERTY_NAME
A comma separated list of a classpath uri or package name e.g.:
com.example.app.steps
.
GluePath
,
Constant Field Valuespublic static final String OBJECT_FACTORY_PROPERTY_NAME
ObjectFactoryServiceLoader
,
Constant Field Valuespublic static final String OPTIONS_PROPERTY_NAME
When available it is recommended to use a property based alternative.
RuntimeOptionsParser
,
Constant Field Valuespublic static final String PLUGIN_PROPERTY_NAME
A comma separated list of [PLUGIN[:PATH_OR_URL]]
e.g:
json:target/cucumber.json
.
Built-in formatter PLUGIN types:
PLUGIN
can also be a fully qualified class name, allowing registration
of 3rd party plugins.
public static final String SNIPPET_TYPE_PROPERTY_NAME
Valid values are underscore
or camelcase
.
By defaults are generated using the under score naming convention.
Copyright © 2020. All rights reserved.