Skip to content

Enable branch coverage for SimpleCov

Markus Koller requested to merge enable-branch-coverage into master

What does this MR do and why?

Enables branch coverage as described at https://github.com/simplecov-ruby/simplecov#branch-coverage-ruby--25

Note: The overall coverage is still based on line coverage, this could be switched to branch coverage with an additional setting: https://github.com/simplecov-ruby/simplecov#primary-coverage. But to avoid any disruption from this change we'll keep line coverage as the primary.

To compare:

Report from master without branch coverage

97.86% covered at 71492.25 hits/line

  • 11828 files in total.
  • 284416 relevant lines, 278342 lines covered and 6074 lines missed. ( 97.86% )

Report from this MR with branch coverage

97.93% covered at 75462.23 hits/line )

  • 11828 files in total.
  • 284414 relevant lines, 278534 lines covered and 5880 lines missed. ( 97.93% )
  • 61622 total branches, 54325 branches covered and 7297 branches missed. ( 88.16% )

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Markus Koller

Merge request reports

Loading