cucumber.api
Annotation Type CucumberOptions


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface CucumberOptions

This annotation provides the same options as the cucumber command line, Main.


Optional Element Summary
 String dotcucumber
           
 boolean dryRun
           
 String[] features
           
 String[] format
           
 String[] glue
           
 boolean monochrome
           
 String[] name
          Specify a patternfilter for features or scenarios
 SnippetType snippets
           
 boolean strict
           
 String[] tags
           
 

dryRun

public abstract boolean dryRun
Returns:
true if this is a dry run
Default:
false

strict

public abstract boolean strict
Returns:
true if strict mode is enabled (fail if there are undefined or pending steps)
Default:
false

features

public abstract String[] features
Returns:
the paths to the feature(s)
Default:
{}

glue

public abstract String[] glue
Returns:
where to look for glue code (stepdefs and hooks)
Default:
{}

tags

public abstract String[] tags
Returns:
what tags in the features should be executed
Default:
{}

format

public abstract String[] format
Returns:
what formatter(s) to use
Default:
{}

monochrome

public abstract boolean monochrome
Returns:
whether or not to use monochrome output
Default:
false

name

public abstract String[] name
Specify a patternfilter for features or scenarios

Returns:
a list of patterns
Default:
{}

dotcucumber

public abstract String dotcucumber
Default:
""

snippets

public abstract SnippetType snippets
Returns:
what format should the snippets use. underscore, camelcase
Default:
cucumber.api.SnippetType.UNDERSCORE


Copyright © 2013. All Rights Reserved.