package cucumber

  1. Overview
  2. Docs

Module Cucumber.StepSource

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

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

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

Match a user supplied regular expression to a step.

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

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

Sourceval text : t -> string

Obtain the full text string of a step

Sourceval argument : t -> arg option

Extract arguments to a step