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 )
22
3- > Saves the code coverage collected from instrumented code
3+ > Saves the code coverage collected during Cypress tests
44
55## Install
66
77``` shell
8- npm install -D cypress-istanbul
8+ npm install -D @ cypress/code-coverage
99```
1010
1111and its peer dependencies
@@ -17,14 +17,14 @@ npm install -D nyc istanbul-lib-coverage cypress
1717Add to your ` cypress/support/index.js ` file
1818
1919``` js
20- import ' cypress-istanbul /support'
20+ import ' @ cypress/code-coverage /support'
2121```
2222
2323Register tasks in your ` cypress/plugins/index.js ` file
2424
2525``` js
2626module .exports = (on , config ) => {
27- on (' task' , require (' cypress-istanbul /task' ))
27+ on (' task' , require (' @ cypress/code-coverage /task' ))
2828}
2929```
3030
@@ -56,8 +56,8 @@ Put the following in `cypress/plugins/index.js` file to use `.babelrc` file
5656
5757``` js
5858module .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' ))
6161}
6262```
6363
@@ -71,7 +71,7 @@ Now the code coverage from spec files will be combined with end-to-end coverage.
7171
7272## Debugging
7373
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
7575
7676## License
7777
0 commit comments