Document potential issue with mocha JSON reporter

This commit is contained in:
Michal Dorner 2021-03-31 23:59:56 +02:00
parent ee126813a2
commit 0e5d21a75b
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786

View file

@ -286,6 +286,10 @@ You can use following example configuration in `package.json`:
"test": "mocha --reporter json > test-results.json" "test": "mocha --reporter json > test-results.json"
} }
``` ```
Test processing might fail if any of your tests writes anything on standard output.
Mocha unfortunately doesn't have option to store `json` output directly to file and we have to rely on redirecting its standard output.
There is a work in progress to fix it: [mocha#4607](https://github.com/mochajs/mocha/pull/4607)
</details> </details>
## GitHub limitations ## GitHub limitations