Code Coverage

grcov or tarpaulin can be used for ensuring your tests cover a good portion of your code.

grcov: A code coverage tool. cargo tarpaulin: Another code coverage tool.

Coverage Testing with grcov

grcov grcov-crates.io grcov-github grcov-lib.rs cat-command-line-utilities cat-development-tools cat-development-tools::testing

Rust tool to collect and aggregate code coverage data for multiple source files.

Measure your code Coverage with cargo_tarpaulin

cargo_tarpaulin-github cat-development-tools cat-development-tools::cargo-plugins

cargo tarpaulin is a tool to determine code coverage achieved via tests.