Open flamestream opened 8 years ago
@gotwarlost Just wanted to up this issue a bit. I'm facing the same difficulties as @flamestream
Basically all the highlighting in the HTML reports is off by a quite a bit in seemingly random places. I host all my coverage reports online so check out this report as an example.
https://coverage.gpmdp.xyz/feature-react-settings/main/features/core/websocketAPI.js.html
As you can see, some lines are marked as completely covered while still being highlighted red 😢
EDIT: I hacked a fix for this into my code so that linked report looks correct now
Some manually editing of the produced HTML files appears to indicate that some of the "span" tags aren't being closed correctly.
Running the HTML through a validator results in quite a few errors like these.
Stray end tag span.
Unclosed element span.
Disabling the call to annotateFunctions
has fixed this problem for me. Not even sure what annotateFunctions
is supposed to affect visually as my coverage report still appears accurate with it disabled 👍
@MarshallOfSound Thanks for looking for a solution. I've tried to disable that annotateFunctions
function call but it didn't seem to have resolved my issue.
Was there anything else that has been modified by any chance? Which version of node/libs do you have running?
Using
node 6.5.0
mocha@2.4.5
istanbul@v1.1.0-alpha.1
babel-preset-es2015@6.14.0
Running
and checking
coverage/lcov-report/index.html
produces correct results.Then running
and checking
coverage_report/lcov-report/index.html
produces different results. The position of all visual keys seems to be offset in an irregular way.a.js
test/a.test.js