Skip to content

Commit 30800ea

Browse files
authored
explain how to disable coverage better
1 parent 7b6a5e6 commit 30800ea

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: README.md

+13
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,20 @@ Another important option is `excludeAfterRemap`. By default it is false, which m
315315
You can skip the client-side code coverage hooks by setting the environment variable `coverage` to `false`.
316316

317317
```shell
318+
# tell Cypress to set environment variable "coverage" to false
318319
cypress run --env coverage=false
320+
# or pass the environment variable
321+
CYPRESS_coverage=false cypress run
322+
```
323+
324+
or set it to `false` in the `cypress.json` file
325+
326+
```json
327+
{
328+
"env": {
329+
"coverage": false
330+
}
331+
}
319332
```
320333

321334
See [Cypress environment variables](https://on.cypress.io/environment-variables) and [support.js](support.js). You can try running without code coverage in this project yourself

0 commit comments

Comments
 (0)