CucumberGherkin.print_messages
You're seeing just the function
print_messages
, go back to CucumberGherkin module for more information.
Link to this function
print_messages(envelopes, type)
Rely on CucumberMessages printer to print the envelopes to the specified format. Currently only :ndjson
is supported.
It is likely that Elixir projects won't directly use this as they can use the unformatted protobuf message version in Cucumber as well.
Examples
iex> CucumberGherkin.parse_path("testdata/good/background.feature", []) |> CucumberGherkin.print_messages(:ndjson) |> IO.puts
{"source":{"data": .......... }}
{"gherkinDocument":{"feature": ........... }}
{"pickle":{ .......... }}
{"pickle":{ .......... }}