Current state of code coverage in Rust


Which is the current state of code coverage in Rust? Is it still available only for nightly? Which is the best continuous integration platform that supports that at the moment?

I am using GitLab at the moment and I am looking for a good guide to configure for that.

Thank you.

There are a few tools. cargo-tarpaulin works on stable and is decent, while cargo-llvm-cov requires nightly (though it'll install it automatically) and uses Rust's built-in tooling to provide more accurate coverage.


Thank you for the reply, do you know if it (cargo-tarpaulin) integrates with GitLab?

cargo-tarpaulin can output "standard" .lcov files and a few other formats. (edit: there's a paragraph about gitlab integration in the readme of tarpaulin)


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.