Back to Cypress

Code coverage example

npm/vue/cypress/component/basic/code-coverage/README.md

15.15.0406 B
Original Source

Code coverage example

The plugin "@cypress/vue" can automatically instrument JavaScript and Vue files and generate code coverage report by using cypress-io/code-coverage plugin (included). These tests in unit-spec.js and Calculator-spec.js check if the files were instrumented by checking window.__coverage__ object.