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
+18
Original file line number
Diff line number
Diff line change
@@ -144,6 +144,24 @@ You can specify custom report folder by adding `nyc` object to the `package.json
144
144
}
145
145
```
146
146
147
+
## Custom reporters
148
+
149
+
You can specify custom coverage reporter(s) to use. For example to output text summary and save JSON report in `cypress-coverage` folder set in your `package.json` folder:
150
+
151
+
```json
152
+
{
153
+
"nyc": {
154
+
"report-dir": "cypress-coverage",
155
+
"reporter": [
156
+
"text",
157
+
"json"
158
+
]
159
+
}
160
+
}
161
+
```
162
+
163
+
**Tip:** find list of reporters [here](https://istanbul.js.org/docs/advanced/alternative-reporters/)
164
+
147
165
## Exclude code
148
166
149
167
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