Giter Site home page Giter Site logo

cypress-cdp-coverage's Introduction

cypress-cdp-coverage

Cypress plugin to collect coverage data directly from a Google Chrome instance.

Important notes

  • This plugin only works with Google Chrome because it relies on using Chrome Debugging Protocol to collect coverage data.

  • The collected coverage data is a raw data in Chrome Debugging Protocol’s native format. You need to use tools such as v8-to-istanbul to convert it to a format you desire.

Usage

In your Cypress plugins/index.js file:

require('cypress-cdp-coverage/plugin')(on, config)

In your Cypress support/index.js file:

import 'cypress-cdp-coverage/support'

When running Cypress, set the environment variable CYPRESS_CDP_COVERAGE to a directory. When tests are run, the coverage data will be written to that directory.

Prior art

This Cypress plugin is inspired by v8-cypress-coverage-plugin. The main difference is that this plugin does not perform any post-processing on the coverage data and it is up to the user to do so.

cypress-cdp-coverage's People

Contributors

dtinth avatar

Stargazers

frankfanslc avatar

Watchers

Di Warachet S. avatar Max Bodhisuwan avatar  avatar W. Andrew Robinson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.