package cucumber
Library
Module
Module type
Parameter
Class
Class type
The main module used to create a Cucumber instance.
val empty : 'a t
Create an empty Cucumber context.
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
).
val execute : 'a t -> unit
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.
val fail : 'a option * Outcome.t
This function is a convenience method when a step definition does not wish to pass back a state and fail the step.
val pass : 'a option * Outcome.t
This function is a convenience method when a step definition does not wish to pass back a state and pass the step.
val pass_with_state : 'a -> 'a option * Outcome.t
This function is a convenience method when a step definition does wish to pass back a state and pass the step.