Class CucumberOptionsImpl

  • All Implemented Interfaces:
    Annotation

    public class CucumberOptionsImpl
    extends Object
    implements cucumber.api.CucumberOptions
    This is a custom implementation of CucumberOptions 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 of com.privalia.qa.specs to the glue * Automatically adds reference of TestNGPrettyFormatter to the plugins * Automatically include path to store TestNG reports
    Author:
    Jose Fernandez
    • 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 adds com.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 of TestNGPrettyFormatter 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()