Proposal: Adding support for native V8 code coverage

Aperta
#925 2 commenti 3 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@baus ci sta già lavorando.

Dal 26/2/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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!

Lingua principale
TypeScript
Stelle
440
Fork
114
Merge medio
42m
PR unite (30g)
19

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cypress-io/code-coverage

Tutte le issue di cypress-io/code-coverage

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.