c8 - native V8 code-coverage
Like nyc, c8 just magically works:
npm i c8 -g c8 node foo.js
The above example will output coverage metrics for
c8 report to regenerate reports after
c8 has already been run.
Supported Node.js Versions
bleeding edge Node.js features,
make sure you're running Node.js
Goals of the Project
A fully functional code coverage solution using only V8's native coverage features and minimal user-land modules, so that we fit these constraints:
- No mucking with Node.js' runtime environment.
See the contributing guide here.