atom-lcov-info icon indicating copy to clipboard operation
atom-lcov-info copied to clipboard

coverage is mapping the wrong file (when there are underscores (_) in the path

Open DinisCruz opened this issue 10 years ago • 1 comments

I was using the plug in today and noticed that the results I was getting for the assert_Number.litcoffee file were wrong:

image

Initially I though that the prob was in the lcov data created (maybe an issue with jscover and litcoffee files), but looking at the lcov data using an html reported, showed that the raw data was good:

image

This was also confirmed by looking at the actually lcov data (in lcov.info):

image

Trying to figure out where the data shown in assert_Number.litcoffee was coming from, I looked at the other data in lcov.info and was able to track it down to the Number.litCoffee file:

image

So the prob seems to be that the assert_Number.litcoffee file is showing the code coverage of the Number.litCoffee file

DinisCruz avatar Jan 31 '15 14:01 DinisCruz

ok, I found a way to fix this, can you take a look at https://github.com/jacogr/atom-lcov-info/issues/21 and let me know if you want me to send a PR with it (I tried not to change to much your existing code logic)

Btw, the name of this issue is now wrong (it has nothing to do with _). the issue is when there are two files with coverage and one is a subset of another

DinisCruz avatar Jan 31 '15 15:01 DinisCruz