Skip to content

Saves the code coverage collected during Cypress tests

License

Notifications You must be signed in to change notification settings

nvhoanganh/code-coverage

 
 

Repository files navigation

cypress-istanbul CircleCI renovate-app badge

Saves the code coverage collected from instrumented code

Install

npm install -D cypress-istanbul

and its peer dependencies

npm install -D nyc istanbul-lib-coverage cypress

Add to your cypress/support/index.js file

import 'cypress-istanbul/support'

Register tasks in your cypress/plugins/index.js file

module.exports = (on, config) => {
  on('task', require('cypress-istanbul/task'))
}

If your application is loaded Istanbul-instrumented source code, then the coverage information will be automatically saved into .nyc_output folder and a report will be generated after the tests finish (even in the interactive mode). Find the HTML report in the coverage folder.

Coverage report

Examples

License

This project is licensed under the terms of the MIT license.

About

Saves the code coverage collected during Cypress tests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.0%
  • HTML 1.0%