Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Adding support for native V8 code coverage #925

Open
parkuman opened this issue Jan 27, 2025 · 1 comment
Open

Proposal: Adding support for native V8 code coverage #925

parkuman opened this issue Jan 27, 2025 · 1 comment

Comments

@parkuman
Copy link

Hi everyone. Last year I had a brief email exchange with @jennifer-shehane and she confirmed to me that there were no more plans to implement v8 coverage for Cypress from the internal team. This commit was made to the docs to remove any mention of future plans.

I'm happy to say I have an initial working package published to NPM for V8 code coverage support for Cypress!

NPM: https://www.npmjs.com/package/cypress-code-coverage-v8
Repo: https://github.com/parkuman/cypress-code-coverage-v8/

I would love some input from the Cypress team to see if/how we might want to try and get this offered as an official plugin? It seems the other major test frameworks like Playwright and Vitest offer V8 coverage out-of-the-box. If we did want it to be an official plugin, I could imagine we might want it in its own repo outside of this one.

We have been using a version of this plugin internally at our company for our Vite + React application for over 6 months and it has served us well. Please take a look and let me know what you think! Very open to contributions and to get the ball rolling on this.

Also huge thanks to @bahmutov for the inital proof-of-concept for this, it was a massive help!

@jennifer-shehane
Copy link
Member

Thanks @parkuman, I'll bring this up in a discussion with the team and let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants