Skip to content

Commit

Permalink
Document potential issue with mocha JSON reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
dorny committed Mar 31, 2021
1 parent ee12681 commit 0e5d21a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ You can use following example configuration in `package.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>

## GitHub limitations
Expand Down

0 comments on commit 0e5d21a

Please sign in to comment.