Class Constants


  • @API(status=STABLE)
    public final class Constants
    extends Object
    • 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
      • 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
      • 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
      • 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

        PLUGIN can also be a fully qualified class name, allowing registration of 3rd party plugins.

        See Also:
        Constant Field Values
      • OBJECT_FACTORY_PROPERTY_NAME

        public static final String OBJECT_FACTORY_PROPERTY_NAME
        Property name to select custom object factory implementation: "cucumber.object-factory"

        By default, if a single object factory is available on the class path that object factory will be used.

        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 underscore or camelcase.

        By defaults are generated using the under score naming convention.

        See Also:
        Constant Field Values
      • PARALLEL_EXECUTION_ENABLED_PROPERTY_NAME

        public static final String PARALLEL_EXECUTION_ENABLED_PROPERTY_NAME
        Property name used to enable parallel test execution: "cucumber.execution.parallel.enabled"

        By default, tests are executed sequentially in a single thread.

        See Also:
        Constant Field Values
      • PARALLEL_CONFIG_STRATEGY_PROPERTY_NAME

        public static final String PARALLEL_CONFIG_STRATEGY_PROPERTY_NAME
        Property name used to determine the desired configuration strategy: "cucumber.execution.parallel.config.strategy"

        Value must be one of dynamic, fixed, or custom.

        See Also:
        Constant Field Values
      • PARALLEL_CONFIG_FIXED_PARALLELISM_PROPERTY_NAME

        public static final String PARALLEL_CONFIG_FIXED_PARALLELISM_PROPERTY_NAME
        Property name used to determine the desired parallelism for the DefaultParallelExecutionConfigurationStrategy.FIXED configuration strategy: "cucumber.execution.parallel.config.fixed.parallelism"

        No default value; must be an integer.

        See Also:
        DefaultParallelExecutionConfigurationStrategy.FIXED, Constant Field Values
      • PARALLEL_CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME

        public static final String PARALLEL_CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME
        Property name of the factor used to determine the desired parallelism for the DefaultParallelExecutionConfigurationStrategy.DYNAMIC configuration strategy: "cucumber.execution.parallel.config.dynamic.factor"

        Value must be a decimal number; defaults to 1.

        See Also:
        DefaultParallelExecutionConfigurationStrategy.DYNAMIC, Constant Field Values
      • PARALLEL_CONFIG_CUSTOM_CLASS_PROPERTY_NAME

        public static final String PARALLEL_CONFIG_CUSTOM_CLASS_PROPERTY_NAME
        Property name used to specify the fully qualified class name of the ParallelExecutionConfigurationStrategy to be used by the DefaultParallelExecutionConfigurationStrategy.CUSTOM configuration strategy: "cucumber.execution.parallel.config.custom.class"
        See Also:
        DefaultParallelExecutionConfigurationStrategy.CUSTOM, Constant Field Values