All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cucumber.core.options.Constants Maven / Gradle / Ivy

There is a newer version: 7.20.1
Show newest version
package io.cucumber.core.options;

import io.cucumber.core.runtime.ObjectFactoryServiceLoader;

public final class Constants {

    /**
     * Property name used to disable ansi colors in the output (not supported by
     * all terminals): {@value}
     * 

* Ansi colors are enabled by default. */ public static final String ANSI_COLORS_DISABLED_PROPERTY_NAME = "cucumber.ansi-colors.disabled"; /** * File name of cucumber properties file: {@value} */ public static final String CUCUMBER_PROPERTIES_FILE_NAME = "cucumber.properties"; /** * Property name used to enable dry-run: {@value} *

* When using dry run Cucumber will skip execution of glue code. *

* By default, dry-run is disabled */ public static final String EXECUTION_DRY_RUN_PROPERTY_NAME = "cucumber.execution.dry-run"; /** * Property name used to limit the number of executed scenarios : {@value} *

* Limits the number of scenarios to be executed to a specific amount. *

* By default scenarios are executed. */ public static final String EXECUTION_LIMIT_PROPERTY_NAME = "cucumber.execution.limit"; /** * Property name used to set execution order: {@value} *

* Valid values are {@code lexical}, {@code reverse}, {@code random} or * {@code random:[seed]}. *

* By default features are executed in lexical file name order */ public static final String EXECUTION_ORDER_PROPERTY_NAME = "cucumber.execution.order"; /** * Property name used to enable wip execution: {@value} *

* When using wip execution Cucumber will fail if there are any passing * scenarios. *

* By default, wip execution is disabled */ public static final String WIP_PROPERTY_NAME = "cucumber.execution.wip"; /** * Property name used to set feature location: {@value} *

* A comma separated list of: *

    *
  • {@code path/to/dir} - Load the files with the extension ".feature" * for the directory {@code path} and its sub directories. *
  • {@code path/name.feature} - Load the feature file * {@code path/name.feature} from the file system.
  • *
  • {@code classpath:path/name.feature} - Load the feature file * {@code path/name.feature} from the classpath.
  • *
  • {@code path/name.feature:3:9} - Load the scenarios on line 3 and line * 9 in the file {@code path/name.feature}.
  • *
  • {@code @path/file} - Load {@code path/file} from the file system and * parse feature paths.
  • *
  • {@code @classpath:path/file} - Load {@code path/file} from the * classpath and parse feature paths.
  • *
* * @see io.cucumber.core.feature.FeatureWithLines */ public static final String FEATURES_PROPERTY_NAME = "cucumber.features"; /** * Property name used to set name filter: {@value} *

* Filters scenarios by name based on the provided regex pattern e.g: * {@code ^Hello (World|Cucumber)$}. Scenarios that do not match the * expression are not executed. *

* By default all scenarios are executed */ public static final String FILTER_NAME_PROPERTY_NAME = "cucumber.filter.name"; /** * Property name used to set tag filter: {@value} *

* Filters scenarios by tag based on the provided tag expression e.g: * {@code @Cucumber and not (@Gherkin or @Zucchini)}. Scenarios that do not * match the expression are not executed. *

* By default all scenarios are executed */ public static final String FILTER_TAGS_PROPERTY_NAME = "cucumber.filter.tags"; /** * Property name to set the glue path: {@value} *

* A comma separated list of a classpath uri or package name e.g.: * {@code com.example.app.steps}. * * @see io.cucumber.core.feature.GluePath */ public static final String GLUE_PROPERTY_NAME = "cucumber.glue"; /** * Property name used to select a specific object factory implementation: * {@value} * * @see ObjectFactoryServiceLoader */ public static final String OBJECT_FACTORY_PROPERTY_NAME = "cucumber.object-factory"; /** * Property name formerly used to pass command line options to Cucumber: * {@value} This property is no longer read by Cucumber. Please use any of * the */ static final String OPTIONS_PROPERTY_NAME = "cucumber.options"; /** * Property name to enable plugins: {@value} *

* A comma separated list of {@code [PLUGIN[:PATH_OR_URL]]} e.g: * {@code json:target/cucumber.json}. *

* Built-in formatter PLUGIN types: *

    *
  • html
  • *
  • pretty
  • *
  • progress
  • *
  • summary
  • *
  • json
  • *
  • usage
  • *
  • rerun
  • *
  • junit
  • *
  • testng
  • *
*

* {@code PLUGIN} can also be a fully qualified class name, allowing * registration of 3rd party plugins. */ public static final String PLUGIN_PROPERTY_NAME = "cucumber.plugin"; /** * Property name to enable publishing cucumber reports: {@value} *

* Enabling this will publish test results online. *

* Valid values are {@code true}, {@code false}. */ public static final String PLUGIN_PUBLISH_ENABLED_PROPERTY_NAME = "cucumber.publish.enabled"; /** * Property name to publish cucumber reports with bearer token: {@value} *

* Enabling this will publish authenticated test results online. *

*/ public static final String PLUGIN_PUBLISH_TOKEN_PROPERTY_NAME = "cucumber.publish.token"; /** * Property name to override the cucumber reports publish uri: {@value} *

* Note that setting this property is not sufficient to activate publishing. */ public static final String PLUGIN_PUBLISH_URL_PROPERTY_NAME = "cucumber.publish.url"; /** * Property name to set the proxy used to publish cucumber reports . *

* Note that setting this property is not sufficient to activate publishing. */ public static final String PLUGIN_PUBLISH_PROXY_PROPERTY_NAME = "cucumber.publish.proxy"; /** * Property name to suppress publishing advertising banner: {@value} *

* Valid values are {@code true}, {@code false}. */ public static final String PLUGIN_PUBLISH_QUIET_PROPERTY_NAME = "cucumber.publish.quiet"; /** * Property name to control naming convention for generated snippets: * {@value} *

* Valid values are {@code underscore} or {@code camelcase}. *

* By defaults are generated using the under score naming convention. */ public static final String SNIPPET_TYPE_PROPERTY_NAME = "cucumber.snippet-type"; private Constants() { } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy