Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Cucumber.Lib
SourceThe main module used to create a Cucumber instance.
A cucumber context type which contains a world state type parameter
val _Given :
Re.re ->
('a option -> Re.Group.t option -> Step.arg option -> 'a option * Outcome.t) ->
'a t ->
'a t
Attach a regular expression and a step definition to a Cucumber context. The step definition should accept three parameters: state, regular expression groups captured from the regular expression, and any step arguments. The function should return a tuple which has an optional state parameter and an Outcome.t
(see the Outcome
for more information.
Set the human language dialect of a set of feature files. The default is set to English (Dialect.En
).
Once the step definitions have been attached to the Cucumber context, this executes the step definitions then exits the program with an appropriate exit code.
This function is a convenience method when a step definition does not wish to pass back a state and fail the step.
This function is a convenience method when a step definition does not wish to pass back a state and pass the step.