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

Allow custom base directories for coverage reports

Open Nevon opened this issue 9 years ago • 1 comments

Sonarqube expects the coverage reports to have relative paths, so the absolute paths used in the lcov reporter doesn't work. Even if Sonarqube was okay with absolute paths, I'm running it in docker, so the path wouldn't match the coverage report anyway. I would suggest exposing a new configuration option for the reporter to allow you to specify your own base path. If it's not set, you could keep using absolute paths, so as to avoid breakage.

It looks like #106 may have solved it, but it was closed due to inactivity.

Nevon avatar Jun 03 '16 12:06 Nevon

Having the same issue, the absolute path of the lcov display 0 coverage in sonar. I was forced to use 0.4.2.

bgraber47 avatar Jan 20 '17 08:01 bgraber47