Class 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:
    TigerCucumberRunner

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

      Fields 
      Modifier and Type Field Description
      protected io.cucumber.core.eventbus.EventBus bus  
      protected io.cucumber.core.runtime.CucumberExecutionContext context  
      protected List<io.cucumber.core.gherkin.Feature> features  
      protected boolean multiThreadingAssumed  
      protected io.cucumber.core.plugin.Plugins plugins  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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 createJUnitOptions​(Class<?> clazz)  
      protected io.cucumber.core.options.RuntimeOptions createRuntimeOptions​(Class<?> clazz)  
      static io.cucumber.core.options.RuntimeOptions currentRuntimeOptions()  
      protected org.junit.runner.Description describeChild​(org.junit.runners.ParentRunner<?> child)  
      protected static Collection<String> environmentSpecifiedTags​(List<?> existingTags)  
      List<org.junit.runners.ParentRunner<?>> getChildren()  
      protected io.cucumber.core.eventbus.EventBus initializeBus()  
      protected io.cucumber.core.runtime.ThreadLocalRunnerSupplier initializeServices​(Class<?> clazz, io.cucumber.core.options.RuntimeOptions runtimeOptions)  
      protected void parseFeaturesEarly()  
      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
    • Field Detail

      • bus

        protected io.cucumber.core.eventbus.EventBus bus
      • plugins

        protected io.cucumber.core.plugin.Plugins plugins
      • features

        protected List<io.cucumber.core.gherkin.Feature> features
      • context

        protected io.cucumber.core.runtime.CucumberExecutionContext context
      • multiThreadingAssumed

        protected boolean multiThreadingAssumed
    • Constructor Detail

      • CucumberSerenityBaseRunner

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

      • createRuntimeOptions

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

        protected io.cucumber.core.eventbus.EventBus 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

        @NotNull
        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<?>>