karma-runner / karma-coverage

A Karma plugin. Generate code coverage.
MIT License
770 stars 247 forks source link

Combined coverage report #1

Open vojtajina opened 11 years ago

vojtajina commented 11 years ago

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

A single report for all browsers.

JamieMason commented 11 years ago

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

Iristyle commented 11 years ago

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

xseignard commented 11 years ago

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

inspector-ambitious commented 11 years ago

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

princed commented 8 years ago

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