Class CucumberSerenityBaseRunner

java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.ParentRunner<?>>
io.cucumber.junit.CucumberSerenityBaseRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Orderable, org.junit.runner.manipulation.Sortable
Direct Known Subclasses:
CucumberSerenityRunner

public class CucumberSerenityBaseRunner extends org.junit.runners.ParentRunner<org.junit.runners.ParentRunner<?>>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addPlugin(io.cucumber.plugin.Plugin plugin)
     
    protected boolean
    addPluginIfNotInList(io.cucumber.plugin.Plugin plugin, Class<?> clazz)
     
    protected org.junit.runners.model.Statement
    childrenInvoker(org.junit.runner.notification.RunNotifier notifier)
     
    protected void
    createFeatureRunners(List<io.cucumber.core.gherkin.Feature> features, io.cucumber.core.options.RuntimeOptions runtimeOptions, io.cucumber.junit.JUnitOptions junitOptions)
     
    protected io.cucumber.junit.JUnitOptions
     
    protected io.cucumber.core.options.RuntimeOptions
     
    static io.cucumber.core.options.RuntimeOptions
     
    protected org.junit.runner.Description
    describeChild(org.junit.runners.ParentRunner<?> child)
     
    protected static Collection<String>
    environmentSpecifiedTags(List<?> existingTags)
     
    List<org.junit.runners.ParentRunner<?>>
     
    protected io.cucumber.core.eventbus.EventBus
     
    protected List<io.cucumber.core.gherkin.Feature>
     
    protected void
     
    protected io.cucumber.core.runtime.ThreadLocalRunnerSupplier
    initializeServices(Class<?> clazz, io.cucumber.core.options.RuntimeOptions runtimeOptions)
     
    protected void
    initiateContext(io.cucumber.core.runtime.ExitStatus exitStatus, io.cucumber.core.runtime.ThreadLocalRunnerSupplier runnerSupplier)
     
    protected void
    initiatePluginsList(io.cucumber.core.options.RuntimeOptions runtimeOptions)
     
    protected void
     
    protected void
    runChild(org.junit.runners.ParentRunner<?> child, org.junit.runner.notification.RunNotifier notifier)
     
    static void
    setRuntimeOptions(io.cucumber.core.options.RuntimeOptions runtimeOptions)
     
    void
    setScheduler(org.junit.runners.model.RunnerScheduler scheduler)
     

    Methods inherited from class org.junit.runners.ParentRunner

    classBlock, classRules, collectInitializationErrors, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, isIgnored, order, run, runLeaf, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation

    Methods inherited from class org.junit.runner.Runner

    testCount

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CucumberSerenityBaseRunner

      public CucumberSerenityBaseRunner(Class clazz) throws org.junit.runners.model.InitializationError
      Throws:
      org.junit.runners.model.InitializationError
  • Method Details

    • getEventBus

      protected io.cucumber.core.eventbus.EventBus getEventBus()
    • getFeatures

      protected List<io.cucumber.core.gherkin.Feature> getFeatures()
    • initiatePluginsList

      protected void initiatePluginsList(io.cucumber.core.options.RuntimeOptions runtimeOptions)
    • addPlugin

      protected void addPlugin(io.cucumber.plugin.Plugin plugin)
    • addPluginIfNotInList

      protected boolean addPluginIfNotInList(io.cucumber.plugin.Plugin plugin, Class<?> clazz)
    • initiateContext

      protected void initiateContext(io.cucumber.core.runtime.ExitStatus exitStatus, io.cucumber.core.runtime.ThreadLocalRunnerSupplier runnerSupplier)
    • createRuntimeOptions

      protected io.cucumber.core.options.RuntimeOptions createRuntimeOptions(Class<?> clazz)
    • initializeBus

      protected void initializeBus()
    • createJUnitOptions

      protected io.cucumber.junit.JUnitOptions createJUnitOptions(Class<?> clazz)
    • environmentSpecifiedTags

      protected static Collection<String> environmentSpecifiedTags(List<?> existingTags)
    • setRuntimeOptions

      public static void setRuntimeOptions(io.cucumber.core.options.RuntimeOptions runtimeOptions)
    • currentRuntimeOptions

      public static io.cucumber.core.options.RuntimeOptions currentRuntimeOptions()
    • parseFeaturesEarly

      protected void parseFeaturesEarly()
    • initializeServices

      protected io.cucumber.core.runtime.ThreadLocalRunnerSupplier initializeServices(Class<?> clazz, io.cucumber.core.options.RuntimeOptions runtimeOptions)
    • createFeatureRunners

      protected void createFeatureRunners(List<io.cucumber.core.gherkin.Feature> features, io.cucumber.core.options.RuntimeOptions runtimeOptions, io.cucumber.junit.JUnitOptions junitOptions)
    • getChildren

      public List<org.junit.runners.ParentRunner<?>> getChildren()
      Specified by:
      getChildren in class org.junit.runners.ParentRunner<org.junit.runners.ParentRunner<?>>
    • describeChild

      protected org.junit.runner.Description describeChild(org.junit.runners.ParentRunner<?> child)
      Specified by:
      describeChild in class org.junit.runners.ParentRunner<org.junit.runners.ParentRunner<?>>
    • runChild

      protected void runChild(org.junit.runners.ParentRunner<?> child, org.junit.runner.notification.RunNotifier notifier)
      Specified by:
      runChild in class org.junit.runners.ParentRunner<org.junit.runners.ParentRunner<?>>
    • childrenInvoker

      protected org.junit.runners.model.Statement childrenInvoker(org.junit.runner.notification.RunNotifier notifier)
      Overrides:
      childrenInvoker in class org.junit.runners.ParentRunner<org.junit.runners.ParentRunner<?>>
    • setScheduler

      public void setScheduler(org.junit.runners.model.RunnerScheduler scheduler)
      Overrides:
      setScheduler in class org.junit.runners.ParentRunner<org.junit.runners.ParentRunner<?>>