Gherkin.Step (Cucumber v0.4.1)
View SourceRepresents 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
@type t() :: %Gherkin.Step{ datatable: [[String.t()]] | nil, docstring: String.t() | nil, keyword: String.t(), line: non_neg_integer() | nil, text: String.t() }