Our team develops a C++ product hosted on https://github.pie.apple.com with continuous integration builds in rio. We are able to measure test coverage using clang and lcov locally, but we don’t know how to integrate the coverage results into our GitHub workflow. We are looking for a solution similar to Coveralls or Codecov | Code Coverage.

Ideally, we’d like to have the following capabilities:

  • Coverage delta for a pull request.
  • Coverage report for whole code base similar to lcov for each commit in the repo (i.e. we’d like to see coverage over time).
  • [nice to have] block pull requests if coverage decreases.

What is the recommended tool at Apple to do this? Where can I find an example or documentation?

Dominic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.