1
- # cypress-istanbul [ ![ CircleCI] ( https://circleci.com/gh/cypress-io/cypress-istanbul.svg?style=svg )] ( https://circleci.com/gh/cypress-io/cypress-istanbul ) [ ![ renovate-app badge ] [ renovate-badge ]] [ renovate-app ]
1
+ # @ cypress/code-coverage [ ![ renovate-app badge ] [ renovate-badge ]] [ renovate-app ] [ ![ CircleCI] ( https://circleci.com/gh/cypress-io/cypress-istanbul.svg?style=svg )] ( https://circleci.com/gh/cypress-io/cypress-istanbul )
2
2
3
- > Saves the code coverage collected from instrumented code
3
+ > Saves the code coverage collected during Cypress tests
4
4
5
5
## Install
6
6
7
7
``` shell
8
- npm install -D cypress-istanbul
8
+ npm install -D @ cypress/code-coverage
9
9
```
10
10
11
11
and its peer dependencies
@@ -17,14 +17,14 @@ npm install -D nyc istanbul-lib-coverage cypress
17
17
Add to your ` cypress/support/index.js ` file
18
18
19
19
``` js
20
- import ' cypress-istanbul /support'
20
+ import ' @ cypress/code-coverage /support'
21
21
```
22
22
23
23
Register tasks in your ` cypress/plugins/index.js ` file
24
24
25
25
``` js
26
26
module .exports = (on , config ) => {
27
- on (' task' , require (' cypress-istanbul /task' ))
27
+ on (' task' , require (' @ cypress/code-coverage /task' ))
28
28
}
29
29
```
30
30
@@ -56,8 +56,8 @@ Put the following in `cypress/plugins/index.js` file to use `.babelrc` file
56
56
57
57
``` js
58
58
module .exports = (on , config ) => {
59
- on (' task' , require (' cypress-istanbul /task' ))
60
- on (' file:preprocessor' , require (' cypress-istanbul /use-babelrc' ))
59
+ on (' task' , require (' @ cypress/code-coverage /task' ))
60
+ on (' file:preprocessor' , require (' @ cypress/code-coverage /use-babelrc' ))
61
61
}
62
62
```
63
63
@@ -71,7 +71,7 @@ Now the code coverage from spec files will be combined with end-to-end coverage.
71
71
72
72
## Debugging
73
73
74
- Run tests with ` DEBUG=cypress-istanbul ` environment variable to see log messages
74
+ Run tests with ` DEBUG=code-coverage ` environment variable to see log messages
75
75
76
76
## License
77
77
0 commit comments