package cucumber

  1. Overview
  2. Docs

Module Cucumber.PickleSource

Module for parsing and running Cucumber feature files.

This module models the Cucumber Pickle which is returned from the Gherkin parser.

Sourcetype t
Sourceval load_feature_file : string -> string -> t list

Load a Gherkin feature file and return t list.

Sourceval execute_hooks : (string -> unit) list -> t -> unit

Execute user supplied Before and After hooks.

Sourceval steps : t -> Step.t list

Return all steps which are defined for the Pickle.

Sourceval name : t -> string

Return the name of the pickle (eg the Scenario name).

Sourceval filter_pickles : (Tag.t list * Tag.t list) -> t list -> t list

Filter pickles so that only the ones supplied by the user are executed. See also Tag.t

OCaml

Innovation. Community. Security.