istanbuljs / nyc

the Istanbul command line interface
https://istanbul.js.org/
ISC License
5.55k stars 353 forks source link

Can nyc generate a combined coverage report, that shows which individual reports cover which part of the file? #1494

Open AncientSwordRage opened 1 year ago

AncientSwordRage commented 1 year ago

I asked this question on StackOverflow, but I've not heard either way - I'm expecting this is a feature request.

In essence, I'd like to see if a report combines two lots of coverage what amount of each report covered what lines.

Here is an extremely rough mock up:

html test coverage report showing 6 files, the bar showing coverage percentage for four of the six files has a black line showing the split between different.

This would be useful as explained in the linked question when changing test runners, but also when some results come from different sorts of tests (unit, integration etc).