Package io.cucumber.junit
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:
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.EventBusbusprotected io.cucumber.core.runtime.CucumberExecutionContextcontextprotected List<io.cucumber.core.gherkin.Feature>featuresprotected booleanmultiThreadingAssumedprotected io.cucumber.core.plugin.Pluginsplugins
-
Constructor Summary
Constructors Constructor Description CucumberSerenityBaseRunner(Class clazz)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.RuntimeOptionscurrentRuntimeOptions()protected org.junit.runner.DescriptiondescribeChild(org.junit.runners.ParentRunner<?> child)protected static Collection<String>environmentSpecifiedTags(List<?> existingTags)List<org.junit.runners.ParentRunner<?>>getChildren()protected io.cucumber.core.eventbus.EventBusinitializeBus()protected io.cucumber.core.runtime.ThreadLocalRunnerSupplierinitializeServices(Class<?> clazz, io.cucumber.core.options.RuntimeOptions runtimeOptions)protected voidparseFeaturesEarly()protected 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, withInterruptIsolation
-
-
-
-
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:
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<?>>
-
-