'cargo-make' makefile for grcov coverage.
add llvm-tools-preview
rust component.
rustup component add llvm-tools-preview
get the file.
wget https://raw.githubusercontent.com/kazuk/cargo-make-coverage-grcov/main/coverage_grcov.makefile.toml
add extend
for your top of Makefile.toml
as bellow.
extend= [
{ path = "coverage_grcov.makefile.toml" }
]
[tasks.coverage]
alias="coverage_grcov"
cargo make coverage
coverage result placed on target/lcov.info
Set SKIP_INSTALL_GRCOV
environment variable. like a bellow.
[tasks.coverage]
alias="coverage_grcov"
[tasks.coverage.env]
SKIP_INSTALL_GRCOV = 1