Skip to content

Simplecov Compatibility

irongut edited this page Jul 27, 2022 · 2 revisions

Code Coverage Summary v1.3.0 is compatible with simplecov & simplecov-cobertura using their default settings but branch metrics will be zero. It is recommended to either:

  • disable branch metrics in CCS using the hide_branch_rate option
  • or, enable branch coverage in simplecov / simplecov-cobertura

See simplecov docs for details.

Earlier Versions

CCS v1.2.0 and earlier fail with simplecov & simplecov-cobertura using their default settings because branch metrics are not reported.

Workaround

  • Enable Branch coverage.
  • Primary Coverage should be set to line (the default).

See simplecov docs for details.