This is an example of how to use the cargo-llvm-cov
tool to generate coverage reports for a Rust project.
cargo install cargo-binstall
We need to use nightly Rust to run the tests and generate the coverage report.
rustup install nightly
Once you have binstall
installed, you can install the other tools with the following command:
cargo binstall -y cargo-nextest cargo-llvm-cov cargo-mutants just cargo-insta
just test
cargo insta review
just coverage