cucumber-js
cucumber-js copied to clipboard
JSON format issue, especially with larger reports, such as 500MB in size
👓 What did you see?
When I use JSON format to generate results, I encounter the following error.
error logs:
/app/node_modules/@cucumber/cucumber/src/formatter/json_formatter.ts:185
this.log(JSON.stringify(features, null, 2))
^
RangeError: Invalid string length
at JSON.stringify (
✅ What did you expect to see?
Expected to see a JSON report without any formatting issues
📦 Which tool/library version are you using?
node version 18.17.0 or latest cucumber ts 10.6.0
🔬 How could we reproduce it?
Steps to Reproduce:
- In the runner file, use JSON format and add the JSON path to generate the reports.
- Include additional screenshots in the test scripts to increase the report size to over 500MB, then observe the json formatter issue after the test is completed.
- Observe the following error and the same issue has been logged and closed. reference [https://github.com/cucumber/common/issues/1763]
📚 Any additional context?
No response