MoLow / reporters

A collection of reporters for `node:test`
MIT License
43 stars 3 forks source link

Report coverage from Node's native `--experimental-test-coverage` as annotations #123

Open felixfbecker opened 2 months ago

felixfbecker commented 2 months ago

Node supports the flag --experimental-test-coverage, which emits coverage to test reporters as the test:coverage event: https://nodejs.org/api/test.html#collecting-code-coverage

It would be awesome if non-covered lines in the PR could be annotated by the reporter with a warning as not being covered.

MoLow commented 2 months ago

Sorry for the delay in the response. this sounds like a great idea, but I am not sure it should be on by default. we might want to make it configurable, by adding some config file. WDYT?