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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPlugin(io.cucumber.plugin.Plugin plugin) protected booleanaddPluginIfNotInList(io.cucumber.plugin.Plugin plugin, Class<?> clazz) protected org.junit.runners.model.StatementchildrenInvoker(org.junit.runner.notification.RunNotifier notifier) protected voidcreateFeatureRunners(List<io.cucumber.core.gherkin.Feature> features, io.cucumber.core.options.RuntimeOptions runtimeOptions, io.cucumber.junit.JUnitOptions junitOptions) protected io.cucumber.junit.JUnitOptionscreateJUnitOptions(Class<?> clazz) protected io.cucumber.core.options.RuntimeOptionscreateRuntimeOptions(Class<?> clazz) static io.cucumber.core.options.RuntimeOptionsprotected org.junit.runner.DescriptiondescribeChild(org.junit.runners.ParentRunner<?> child) protected static Collection<String> environmentSpecifiedTags(List<?> existingTags) List<org.junit.runners.ParentRunner<?>> protected io.cucumber.core.eventbus.EventBusprotected List<io.cucumber.core.gherkin.Feature> protected voidprotected io.cucumber.core.runtime.ThreadLocalRunnerSupplierinitializeServices(Class<?> clazz, io.cucumber.core.options.RuntimeOptions runtimeOptions) protected voidinitiateContext(io.cucumber.core.runtime.ExitStatus exitStatus, io.cucumber.core.runtime.ThreadLocalRunnerSupplier runnerSupplier) protected voidinitiatePluginsList(io.cucumber.core.options.RuntimeOptions runtimeOptions) protected voidprotected voidrunChild(org.junit.runners.ParentRunner<?> child, org.junit.runner.notification.RunNotifier notifier) static voidsetRuntimeOptions(io.cucumber.core.options.RuntimeOptions runtimeOptions) voidsetScheduler(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, withInterruptIsolationMethods inherited from class org.junit.runner.Runner
testCount
-
Constructor Details
-
CucumberSerenityBaseRunner
- Throws:
org.junit.runners.model.InitializationError
-
-
Method Details
-
getEventBus
protected io.cucumber.core.eventbus.EventBus getEventBus() -
getFeatures
-
initiatePluginsList
protected void initiatePluginsList(io.cucumber.core.options.RuntimeOptions runtimeOptions) -
addPlugin
protected void addPlugin(io.cucumber.plugin.Plugin plugin) -
addPluginIfNotInList
-
initiateContext
protected void initiateContext(io.cucumber.core.runtime.ExitStatus exitStatus, io.cucumber.core.runtime.ThreadLocalRunnerSupplier runnerSupplier) -
createRuntimeOptions
-
initializeBus
protected void initializeBus() -
createJUnitOptions
-
environmentSpecifiedTags
-
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
- Specified by:
getChildrenin classorg.junit.runners.ParentRunner<org.junit.runners.ParentRunner<?>>
-
describeChild
protected org.junit.runner.Description describeChild(org.junit.runners.ParentRunner<?> child) - Specified by:
describeChildin classorg.junit.runners.ParentRunner<org.junit.runners.ParentRunner<?>>
-
runChild
protected void runChild(org.junit.runners.ParentRunner<?> child, org.junit.runner.notification.RunNotifier notifier) - Specified by:
runChildin classorg.junit.runners.ParentRunner<org.junit.runners.ParentRunner<?>>
-
childrenInvoker
protected org.junit.runners.model.Statement childrenInvoker(org.junit.runner.notification.RunNotifier notifier) - Overrides:
childrenInvokerin classorg.junit.runners.ParentRunner<org.junit.runners.ParentRunner<?>>
-
setScheduler
public void setScheduler(org.junit.runners.model.RunnerScheduler scheduler) - Overrides:
setSchedulerin classorg.junit.runners.ParentRunner<org.junit.runners.ParentRunner<?>>
-