Coverage Report - gotwarlost/istanbul GitHub Wiki

After running cover command, three types of coverage report would be generated under ./coverage: 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 and E in front of if-else statements: if or else 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)