Modifier and Type | Optional Element and Description |
---|---|
boolean |
dryRun
Skip execution of glue code.
|
String[] |
extraGlue
Package to load additional glue code (step definitions, hooks and
plugins) from.
|
String[] |
features
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
Package to load glue code (step definitions,
hooks and plugins) from.
|
String[] |
junit
Pass options to the JUnit runner.
|
boolean |
monochrome
Don't colour terminal output.
|
String[] |
name
Only run scenarios whose names match provided regular expression.
|
String[] |
plugin
Register plugins.
|
SnippetType |
snippets
Format of the generated snippets.
|
boolean |
strict
Treat undefined and pending steps as errors.
|
String[] |
tags
Only run scenarios tagged with tags matching
TAG_EXPRESSION . |
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
,
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 String[] name
public abstract SnippetType snippets
public abstract String[] junit
Copyright © 2019. All rights reserved.