You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the message formatter that creates ndjson files and convert it to JSON using Cucumber Standalone JSON Formatter. However, there is a problem that after the conversion to JSON, all the scenarios steps appear in the "after" section instead in the "steps section.
Would you have the possibility to share more regarding your project like step definitions and hooks? Or a minimal reproduction example?
From what I see in your input, it looks like at least one of your After hook (features/support/hooks.rb:96) is executed after each step. That may be the cause of your issue.
Without your step definitions and hooks, or better, a minimal reproduction example, we can not go further. The issue here is not with the json formatter. Your ndjson input seems wrong.
Summary
I am trying to use the message formatter that creates ndjson files and convert it to JSON using Cucumber Standalone JSON Formatter. However, there is a problem that after the conversion to JSON, all the scenarios steps appear in the "after" section instead in the "steps section.
Expected Behavior
Steps should go under "steps" section in the JSON
Current Behavior
Steps are put under "after" section in the JSON
Steps to Reproduce (for bugs)
cat tests.ndjson | cucumber-json-formatter --format ndjson > stand_alone_output.json
Your Environment
ruby 2.7.2
cucumber 5.1.3
input.txt
stand_alone_output.txt
Comment: had to change the file extensions to upload them. Convert the input file extension to .ndjson and the output file to .json to reproduce
The text was updated successfully, but these errors were encountered: