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

Karma coverage and istanbul-combine

Open sharespace opened this issue 8 years ago • 0 comments

Hi, first of all, i think there is no bug it this, but maybe is only wrong documented or described feature. I have a problem with json coverage report. We have thousand of tests so we are running lots of parallel test suits and after end of every suit we generate json file with coverage.

So in first test suit is json with this paths:

C:\\GitLab-Runner\\builds\\f53ae3e4\\3\\project\\module\\file1.js
C:\\GitLab-Runner\\builds\\f53ae3e4\\3\\project\\module\\file2.js

But in other suit there are paths like this

C:\\GitLab-Runner\\builds\\g58749\\0\\project\\module\\file1.js
C:\\GitLab-Runner\\builds\\g58749\\0\\project\\module\\file2.js

If i use istanbul-combine that gives me total wrong summary number because of absolute paths not match and file1.js from first run is not same as in other runs for istanbul-combine.

Is there possiblity to use relative paths in json coverage report or is there another solution for this? Thanks for quick response!

sharespace avatar Mar 07 '18 06:03 sharespace