Gherkin.Step (Cucumber v0.3.0)

View Source

Represents a Gherkin step (Given/When/Then/And/But/*).

A Step is a single action or assertion in a scenario. It consists of:

  • keyword: The step type (Given, When, Then, And, But, or *)
  • text: The step text that matches step definitions
  • docstring: Optional multi-line text block (triple-quoted)
  • datatable: Optional table data (pipe-delimited)
  • line: Line number in the source file

Summary

Types

t()

@type t() :: %Gherkin.Step{
  datatable: [[String.t()]] | nil,
  docstring: String.t() | nil,
  keyword: String.t(),
  line: non_neg_integer() | nil,
  text: String.t()
}