Skip to content
Discussion options

You must be logged in to vote

Not directly at the moment. --experimental-test-coverage gives a terminal table or LCOV, and fallow health --coverage reads Istanbul JSON (coverage-final.json).

Both use the same V8 coverage underneath. Set NODE_V8_COVERAGE so Node keeps that data in a folder, then convert it with c8:

NODE_V8_COVERAGE=./v8-coverage node --test
npx c8 report --reporter=json --temp-directory ./v8-coverage
fallow health --coverage coverage/coverage-final.json

You do not need --experimental-test-coverage for this. Keep it if you also want Node's own coverage table in the terminal.

#2906 tracks support for the V8 folder as direct input, without c8. That gives more precise per-function numbers than the line-bas…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RWOverdijk
Comment options

Answer selected by RWOverdijk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants