sveltejs / svelte

web development for the rest of us
https://svelte.dev
MIT License
80.32k stars 4.28k forks source link

generate coverage reports with NODE_V8_COVERAGE #1752

Closed Rich-Harris closed 3 years ago

Rich-Harris commented 6 years ago

We might be able to do test coverage reliably, finally:

https://medium.com/the-node-js-collection/rethinking-javascript-test-coverage-5726fb272949

lukeed commented 6 years ago

I was able to get it working; easier than I thought! https://github.com/lukeed/polka/commit/d8406ea2968c7399e97cde73900ed4f1249ef7af

lukeed commented 6 years ago

FWIW I reverted to nyc because the coverage was wrong. I'm sure it'll get better but it was reporting lines with } (only) as uncovered.