Skip to content

Commit 5fe76d0

Browse files
committed
chore: document custom output folder, close #50
1 parent b8c7a6e commit 5fe76d0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ if (global.__coverage__) {
132132

133133
That should be enough - the code coverage from the server will be requested at the end of the test run and merged with the client-side code coverage, producing a combined report
134134

135+
## Custom report folder
136+
137+
You can specify custom report folder by adding `nyc` object to the `package.json` file. For example to save reports to `cypress-coverage` folder, use:
138+
139+
```json
140+
{
141+
"nyc": {
142+
"report-dir": "cypress-coverage"
143+
}
144+
}
145+
```
146+
135147
## Exclude code
136148

137149
You can exclude parts of the code or entire files from the code coverage report. See [Istanbul guide](https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md). Common cases:

0 commit comments

Comments
 (0)