Package io.cucumber.core.runner
Class Runner
java.lang.Object
io.cucumber.core.runner.Runner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection<? extends Backend> private final EventBusprivate final CachingGlueprivate static final Loggerprivate final ObjectFactoryprivate final Optionsprivate final List<SnippetGenerator> private @Nullable UUID -
Constructor Summary
ConstructorsConstructorDescriptionRunner(EventBus bus, Collection<? extends Backend> backends, ObjectFactory objectFactory, Options runnerOptions) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate List<HookTestStep> createAfterStepHooks(List<String> tags) private List<HookTestStep> createBeforeStepHooks(List<String> tags) private List<SnippetGenerator> createSnippetGeneratorsForPickle(String language, StepTypeRegistry stepTypeRegistry) private TestCasecreateTestCaseForPickle(Pickle pickle) private List<HookTestStep> private List<HookTestStep> private List<HookTestStep> createTestStepsForHooks(List<String> tags, Collection<CoreHookDefinition> hooks, HookType hookType) private List<PickleStepTestStep> createTestStepsForPickleSteps(Pickle pickle) private voidprivate voidemitSnippetSuggestedEvent(Pickle pickle, Step step) private voidemitTestRunHookFinished(Instant start, @Nullable Throwable throwable, String testRunHookStartedId) private static @Nullable ThrowableexecuteTestRunHook(CoreStaticHookDefinition hookDefinition) executeTestRunHook(String testRunStartedId, CoreStaticHookDefinition hookDefinition) private @Nullable ThrowableexecuteTestRunHooks(String testRunStartedId, List<CoreStaticHookDefinition> afterAllHooks) private List<io.cucumber.messages.types.Snippet> generateSnippetsForStep(Step step) getBus()private LocalelocaleForPickle(Pickle pickle) private PickleStepDefinitionMatchmatchStepToStepDefinition(Pickle pickle, Step step) @Nullable ThrowablerunAfterAllHooks(String testRunStartedId) @Nullable ThrowablerunBeforeAllHooks(String testRunStartedId) voidvoidsetTestRunStartedId(@Nullable UUID testRunStartedId)
-
Field Details
-
log
-
glue
-
bus
-
backends
-
runnerOptions
-
objectFactory
-
snippetGenerators
-
testRunStartedId
-
-
Constructor Details
-
Runner
public Runner(EventBus bus, Collection<? extends Backend> backends, ObjectFactory objectFactory, Options runnerOptions)
-
-
Method Details
-
getBus
-
setTestRunStartedId
-
runPickle
-
localeForPickle
-
runBeforeAllHooks
-
runAfterAllHooks
-
executeTestRunHooks
private @Nullable Throwable executeTestRunHooks(String testRunStartedId, List<CoreStaticHookDefinition> afterAllHooks) -
executeTestRunHook
private Optional<Throwable> executeTestRunHook(String testRunStartedId, CoreStaticHookDefinition hookDefinition) -
executeTestRunHook
-
emitTestRunHookFinished
-
createSnippetGeneratorsForPickle
private List<SnippetGenerator> createSnippetGeneratorsForPickle(String language, StepTypeRegistry stepTypeRegistry) -
buildBackendWorlds
private void buildBackendWorlds() -
createTestCaseForPickle
-
disposeBackendWorlds
private void disposeBackendWorlds() -
createTestStepsForPickleSteps
-
createTestStepsForBeforeHooks
-
createTestStepsForAfterHooks
-
matchStepToStepDefinition
-
emitSnippetSuggestedEvent
-
createAfterStepHooks
-
createBeforeStepHooks
-
createTestStepsForHooks
private List<HookTestStep> createTestStepsForHooks(List<String> tags, Collection<CoreHookDefinition> hooks, HookType hookType) -
generateSnippetsForStep
-