Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
cucumber -x -f json -o data.json
Info
titlePlease note

As the report format in Cucumber JSON is being deprecated in favour of Cucumber Messages, a protocol buffer based implementation, the previous command needs to be adapted slightly.

The report starts by being generated in Cucumber Messages, using "-f message" argument, and then converted to the legacy Cucumber JSON report using the tool cucumber-json-formatter.


Code Block
languagebash
cucumber -x -f message -o data.ndjson
cat data.ndjson | cucumber-json-formatter --format ndjson > data.json


The execution screen details will not only provide information on the test run result, but also of each of the examples provided in the Scenario Outline.

...