-
Notifications
You must be signed in to change notification settings - Fork 788
Coverage Report
Mars Wong edited this page Jan 8, 2018
·
1 revision
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)