cargo-llvm-cov
Cargo subcommand to easily use LLVM source-based code coverage (-C instrument-coverage). (by taiki-e)
grcov
Rust tool to collect and aggregate code coverage data for multiple source files (by mozilla)
cargo-llvm-cov | grcov | |
---|---|---|
9 | 6 | |
821 | 1,120 | |
- | 1.4% | |
9.3 | 7.0 | |
15 days ago | 28 days ago | |
Rust | Rust | |
Apache License 2.0 | Mozilla Public License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cargo-llvm-cov
Posts with mentions or reviews of cargo-llvm-cov.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-25.
-
TIL about `cargo llvm-cov` and `cargo nextest`
I'll let them speak for themselves: https://github.com/taiki-e/cargo-llvm-cov https://nexte.st/index.html
- Code coverage beyond lines?
-
What do you expect from Rust in 2023?
Meanwhile I wholeheartedly recommend https://github.com/taiki-e/cargo-llvm-cov which makes it almost as simple.
- Kudos to cargo-llvm-cov - really useful coverage reporting
-
Code Coverage Tooling
And the options to fail on insufficient coverage are rather lacking supporting only line coverage. I have suggested improvement and might do it if there is interest from the author.
-
Measuring the coverage of a Rust program in Github Actions
Another alternative is https://github.com/taiki-e/cargo-llvm-cov which is easy to use. Don't forget to also try the --html flag with it.
-
Website similar to cppinsights.io for Rust visualization
I'd take a look at either https://github.com/taiki-e/cargo-llvm-cov and/or https://github.com/dtolnay/cargo-expand for this kinda of behavior.
- cargo-llvm-cov: Cargo subcommand to easily use LLVM source-based code coverage
grcov
Posts with mentions or reviews of grcov.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-14.
-
Reaching 100% Code Coverage in Rust
The suggestion comes from the grcov folks themselves:
-
Rust project test coverage
You can give a look at https://github.com/mozilla/grcov But it is not the easiest to use
- Hey Rustaceans! Got a question? Ask here! (21/2022)!
- Recompiling and testing coverage
-
cargo-llvm-cov: Cargo subcommand to easily use LLVM source-based code coverage
This looks great! It essentially replaces the need for something like grcov all together?
What are some alternatives?
When comparing cargo-llvm-cov and grcov you can also consider the following projects:
tarpaulin - A code coverage tool for Rust projects
rustfix - Automatically apply the suggestions made by rustc
jpegxl-rs
cargo-msrv - 🦀 Find the minimum supported Rust version (MSRV) for your project
awesome-wgpu - A curated list of wgpu code and resources.
cargo-expand - Subcommand to show result of macro expansion
rust-sdl2 - SDL2 bindings for Rust
cargo-temp - A CLI tool that allow you to create a temporary new Rust project using cargo with already installed dependencies
toml-rs - A TOML encoding/decoding library for Rust
rustviz - Interactively Visualizing Ownership and Borrowing for Rust
rust-analyzer - A Rust compiler front-end for IDEs