I'm in the process of trying to collect coverage for Node.js' own internal libraries, and am running into a few significant problems:
would love some help getting unblocked from these two issues, very excited to move our own test suite towards built in coverage.
CC: @addaleax, @demurgos, @hashseed, @TimothyGu, @schuay
- Version:
>v10.10.0
- Platform :
all platforms
- Subsystem:
test
I'm in the process of trying to collect coverage for Node.js' own internal libraries, and am running into a few significant problems:
line counts appear to be all over the place; also we don't collect coverage for the wrap itself on several internal modules. Here's output from
assert.jsas an example.coverage can't currently be collected or functions with return statementscoverage isn't collected for closing braces in if statements, see: https://bugs.chromium.org/p/v8/issues/detail?id=8381 (@hashseed, @schuay).the performance of merging 2800 reports is atrocious, I think this is partially because files like
loader.jsneed to get merged over and over again, and also have many 1000s of blocks.I'm seeing a few failures for tests that instrument code used by coverage itself; specifically tests that mock the
eventsmodule.would love some help getting unblocked from these two issues, very excited to move our own test suite towards built in coverage.
CC: @addaleax, @demurgos, @hashseed, @TimothyGu, @schuay
>v10.10.0all platformstest