You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,18 @@ if (global.__coverage__) {
132
132
133
133
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
134
134
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
+
135
147
## Exclude code
136
148
137
149
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