karma-coverage icon indicating copy to clipboard operation
karma-coverage copied to clipboard

Combined coverage report

Open vojtajina opened this issue 11 years ago • 5 comments

See https://github.com/karma-runner/karma/issues/240 for more

A single report for all browsers.

vojtajina avatar Mar 02 '13 21:03 vojtajina

Great, thanks for opening this. Please let me know if I can help at all.

JamieMason avatar Mar 02 '13 21:03 JamieMason

Yeah, I'm interested in this as well, though my interest is a little different.

I'd like to see combination of the coverage report across unit tests + E2E tests for instance. That would necessitate some sort of task outside of Karma to munge the JSON together.

So if / when this gets built, it might be useful to have the lcov merging in a separate lib.

/cc @taichi @Dignifiedquire

Also, links from the previous issue should be: https://github.com/karma-runner/karma/issues/240 https://github.com/karma-runner/karma-coverage/blob/master/lib/reporter.js#L72-L78

Iristyle avatar Apr 03 '13 14:04 Iristyle

I'm also interested to see that coming.

For now I'm using a dumb shell script + lcov to merge reports : https://gist.github.com/xseignard/5420661 so then I can use Sonar to have a clean quality dashboard for my node,angular and plain js projects. See: https://github.com/xseignard/sonar-js as a simple demo

xseignard avatar Apr 20 '13 10:04 xseignard

I have done some experiment with https://github.com/mweibel/lcov-result-merger it works pretty well.

inspector-ambitious avatar Oct 27 '13 15:10 inspector-ambitious

Sort of workaround — https://github.com/princed/karma-coverage-html-index

princed avatar Feb 25 '16 13:02 princed