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 testing the new release and I have been thinking of how we can handle formatting ScenarioOutput data. One thing I find interesting is that the newlines show up if you inspect the HTML source, but they do not show up in the report.
Image 3, how it looks when inspecting the HTML element in chrome
Image 4, how it looks in JSON
The \n are required for the terminal output and Cucumber directly writes whatever the Terminal receives into the JSON file. It would appear that we need to add a .gsub('\n', '< b r / >) when reading out this data from the JSON. I believe that would fix the issue.
Let me know what you think, or if you have a better idea.
The text was updated successfully, but these errors were encountered:
Hey @rajatthareja ,
I am testing the new release and I have been thinking of how we can handle formatting ScenarioOutput data. One thing I find interesting is that the newlines show up if you inspect the HTML source, but they do not show up in the report.
I have made an album of images to show the issue in detail:
Cucumber ReportBuilder Output JSON Formatting Issue
The \n are required for the terminal output and Cucumber directly writes whatever the Terminal receives into the JSON file. It would appear that we need to add a .gsub('\n', '< b r / >) when reading out this data from the JSON. I believe that would fix the issue.
Let me know what you think, or if you have a better idea.
The text was updated successfully, but these errors were encountered: