io.cucumber.junit.CucumberOptions
or io.cucumber.testng.CucumberOptions
.@Retention(value=RUNTIME) @Target(value=TYPE) @Deprecated public @interface CucumberOptions
Modifier and Type | Optional Element and Description |
---|---|
boolean |
dryRun
Deprecated.
Skip execution of glue code.
|
String[] |
extraGlue
Deprecated.
Package to load additional glue code (step definitions, hooks and
plugins) from.
|
String[] |
features
Deprecated.
Either a URI or path to a directory of features or a URI or path to a single
feature optionally followed by a colon and line numbers.
|
String[] |
glue
Deprecated.
Package to load glue code (step definitions,
hooks and plugins) from.
|
String[] |
junit
Deprecated.
Pass options to the JUnit runner.
|
boolean |
monochrome
Deprecated.
Don't colour terminal output.
|
String[] |
name
Deprecated.
Only run scenarios whose names match provided regular expression.
|
String[] |
plugin
Deprecated.
Register plugins.
|
SnippetType |
snippets
Deprecated.
Format of the generated snippets.
|
boolean |
strict
Deprecated.
Treat undefined and pending steps as errors.
|
String[] |
tags
Deprecated.
Only run scenarios tagged with tags matching
TAG_EXPRESSION . |
public abstract boolean dryRun
public abstract boolean strict
public abstract String[] features
When no feature path is provided, Cucumber will use the package of the annotated
class. For example, if the annotated class is com.example.RunCucumber
then features are assumed to be located in classpath:com/example
.
FeatureWithLines
public abstract String[] glue
com.example.app
When no glue is provided, Cucumber will use the package of the annotated
class. For example, if the annotated class is com.example.RunCucumber
then glue is assumed to be located in com.example
.
GluePath
public abstract String[] extraGlue
com.example.app
These packages are used in addition to the default described in #glue
.
public abstract String[] tags
TAG_EXPRESSION
.
For example "@smoke and not @fast"
.
public abstract String[] plugin
junit
, html
,
pretty
, progress
, json
, usage
,
unused
, rerun
, testng
.
Can also be a fully qualified class name, allowing registration of 3rd party plugins.
Plugins can be provided with an argument. For example
json:target/cucumber-report.json
Plugin
public abstract boolean monochrome
public abstract String[] name
public abstract SnippetType snippets
public abstract String[] junit
Copyright © 2019. All rights reserved.