Coverage Report - gotwarlost/istanbul GitHub Wiki
After running cover
command, three types of coverage report would be generated under ./coverage
: coverage.json
、 lcov.info
and lcov-report/*html
.
Here is the instruction to understand the html report:
- Pink: statement not covered
- Orange: function not covered
- Yellow: branch not covered
I
andE
in front ofif-else
statements:if
orelse
not covered respectively- Branch coverage display only kicks in if one or more but not all branches have been taken (if none of the branches were taken the statement coverage will show you that unambiguously)