Gherkin.PickleStep (Cucumber v1.0.0)

View Source

One step of a Gherkin.Pickle.

Mirrors the Cucumber Messages pickleStep: id, substituted text, resolved type (:context/:action/:outcome/:unknown — And/But inherit the preceding step's type), and the ast_node_ids linking back to the gherkinDocument ([step_id], plus the examples-row id for outline pickles).

step carries the underlying Gherkin.Step (with outline placeholders substituted in text, docstring, and datatable) for the runtime, and from_background marks steps inherited from the feature background — the runner reports those separately.

Summary

Types

t()

@type t() :: %Gherkin.PickleStep{
  ast_node_ids: [String.t()],
  from_background: boolean(),
  id: String.t(),
  step: Gherkin.Step.t(),
  text: String.t(),
  type: :context | :action | :outcome | :unknown
}