mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
parent
9098107e2a
commit
c92ced3737
1 changed files with 1 additions and 5 deletions
|
|
@ -310,13 +310,9 @@ Configuration of `uniqueOutputName`, `suiteNameTemplate`, `classNameTemplate`, `
|
||||||
You can use the following example configuration in `package.json`:
|
You can use the following example configuration in `package.json`:
|
||||||
```json
|
```json
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha --reporter json > test-results.json"
|
"test": "mocha --reporter json --reporter-option output=test-results.json"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Test processing might fail if any of your tests write anything on standard output.
|
|
||||||
Mocha, unfortunately, doesn't have the option to store `json` output directly to the 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>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue