Skip to content
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.jsonlcov.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 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)
Clone this wiki locally