gurke v1.0.0-rc1 Gurke View Source
Opinionated Gherkin-parser.
This Gherkin-parser allows you to transform Gherkin source code into a structured form containing all Gherkin elements and their content.
Use Gurke.parse/1 to parse a Gherkin String and retrieve a
List of Gherkin elements in their ocurring order.
Examples
iex> Gurke.Parser.parse(~s''' ...> Feature: Have a Parser ...> ...> Descriptions end up in a description element. ...> # Any comments will be stored in a comment element. ...> Anything is stored as it occurs in the source. ...> ...> Scenario: Gurke parses this Gherkin source ...> When you pass this to Gurke.parse/1 ...> Then you will receive the source in structured form! ...> ''') [ {:feature, "Have a Parser"}, {:description, "Descriptions end up in a description element."}, {:comment, "Any comments will be stored in a comment element."}, {:description, "Anything is stored as it occurs in the source."}, {:scenario, "Gurke parses this Gherkin source"}, {:when, "you pass this to Gurke.parse/1"},
]