Skip to content

Track combined line and branch coverage

Michael Platings requested to merge fix-coverage into main

Many files rightly have zero branches and therefore do not contribute to the branch coverage number. To take both line and branch coverage into account, take the average of the two numbers.

Branch coverage of test files is unimportant. Although it would be nice to track test code with only line coverage, the resulting system would lead to too much confusion. Therefore simply exclude test code from the coverage report.

Merge request reports