package cucumber

  1. Overview
  2. Docs

Implementation of the Cucumber Step (Given, When, Then).

This is mainly used by the runtime to manipulate the step.

type t
type arg =
  1. | DocString of Docstring.t
  2. | Table of Table.t
val string_of_arg : arg option -> string
val string_of_step : t -> string
val find : t -> Re.re -> bool

Match a user supplied regular expression to a step.

val find_groups : t -> Re.re -> Re.Group.t option

Extract string groups from the step to pass to a user supplied function

val text : t -> string

Obtain the full text string of a step

val argument : t -> arg option

Extract arguments to a step

OCaml

Innovation. Community. Security.