atom-lcov-info
atom-lcov-info copied to clipboard
coverage is mapping the wrong file (when there are underscores (_) in the path
I was using the plug in today and noticed that the results I was getting for the assert_Number.litcoffee file were wrong:
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:
This was also confirmed by looking at the actually lcov data (in lcov.info):
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:
So the prob seems to be that the assert_Number.litcoffee file is showing the code coverage of the Number.litCoffee file
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