gherkin v1.0.0 Gherkin

See Gherkin.parse/1 for primary usage.

Summary

Functions

Primary helper function for parsing files or streams through Gherkin. To use simply call this function passing in the full text of the file or a file stream

Functions

parse(string_or_stream)

Primary helper function for parsing files or streams through Gherkin. To use simply call this function passing in the full text of the file or a file stream.

Example:

%Gherkin.Elements.Feature{scenarios: scenarios} = File.read!("test/features/coffee.feature") |> Gherkin.parse()
# Do something with `scenarios`

# Also supports file streams for larger files (must read by lines, bytes not supported)
%Gherkin.Elements.Feature{scenarios: scenarios} = File.stream!("test/features/coffee.feature") |> Gherkin.parse()