Package com.privalia.qa.cucumber.testng
Class CucumberOptionsImpl
- java.lang.Object
-
- com.privalia.qa.cucumber.testng.CucumberOptionsImpl
-
- All Implemented Interfaces:
Annotation
public class CucumberOptionsImpl extends Object implements cucumber.api.CucumberOptions
This is a custom implementation ofCucumberOptions
annotation. This implementation copies the current parameters of the annotation used in the runner class and adds special configuration parameters needed for GingerSpec: * Automatically adds reference ofcom.privalia.qa.specs
to the glue * Automatically adds reference ofTestNGPrettyFormatter
to the plugins * Automatically include path to store TestNG reports- Author:
- Jose Fernandez
-
-
Constructor Summary
Constructors Constructor Description CucumberOptionsImpl(Class clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Annotation>
annotationType()
boolean
dryRun()
String[]
extraGlue()
String[]
features()
String[]
glue()
Automatically addscom.privalia.qa.specs
to the glue if not present to have access to all GingerSpec steps definitionsString[]
junit()
boolean
monochrome()
String[]
name()
String[]
plugin()
Automatically adds reference ofTestNGPrettyFormatter
to the plugins and includes path to store TestNG reportscucumber.api.SnippetType
snippets()
boolean
strict()
String[]
tags()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.annotation.Annotation
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
CucumberOptionsImpl
public CucumberOptionsImpl(Class clazz)
-
-
Method Detail
-
dryRun
public boolean dryRun()
-
strict
public boolean strict()
-
features
public String[] features()
-
glue
public String[] glue()
Automatically addscom.privalia.qa.specs
to the glue if not present to have access to all GingerSpec steps definitions- Returns:
- Array with reference path to classes/packages that contain steps definitions
-
extraGlue
public String[] extraGlue()
-
tags
public String[] tags()
-
plugin
public String[] plugin()
Automatically adds reference ofTestNGPrettyFormatter
to the plugins and includes path to store TestNG reports- Returns:
- Array with reference path to the plugins
-
monochrome
public boolean monochrome()
-
name
public String[] name()
-
snippets
public cucumber.api.SnippetType snippets()
-
junit
public String[] junit()
-
annotationType
public Class<? extends Annotation> annotationType()
- Specified by:
annotationType
in interfaceAnnotation
-
-