Cargo-llvm-cov: Cargo subcommand to easily use LLVM source-based code coverage

This is a wrapper around rustc -Z instrument-coverage and provides:

  • Generate very precise coverage data. (line coverage and region coverage)
  • Support for proc-macro, including coverage of UI tests.
  • Support for doc tests. (this is currently optional, see readme for more)
  • Command-line interface compatible with cargo test.

As someone who has been using this for a while, I'd like to thank you for your hard work — both on this and various other (underused) projects. I highly recommend others check this out! LLVM code coverage sometimes has its bugs (upstream), but it is nonetheless better than any alternative.

Happy to share my CI setup for GitHub Actions using cargo-llvm-cov and publishing to CodeCov if desired.


This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.