Class CucumberOptionsImpl

  • All Implemented Interfaces:
    Annotation

    public class CucumberOptionsImpl
    extends Object
    implements io.cucumber.testng.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 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()
      • plugin

        public String[] plugin()
        Automatically adds reference of to the plugins and includes path to store TestNG reports
        Returns:
        Array with reference path to the plugins
      • publish

        public boolean publish()
      • monochrome

        public boolean monochrome()
      • name

        public String[] name()
      • snippets

        public io.cucumber.testng.CucumberOptions.SnippetType snippets()
      • objectFactory

        public Class<? extends io.cucumber.core.backend.ObjectFactory> objectFactory()