Home

Awesome

cargo-make-coverage-grcov

'cargo-make' makefile for grcov coverage.

Install

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"

Usage

cargo make coverage

coverage result placed on target/lcov.info

Configuration Options

Turn off auto install grcov

Set SKIP_INSTALL_GRCOV environment variable. like a bellow.

[tasks.coverage]
alias="coverage_grcov"

  [tasks.coverage.env]
  SKIP_INSTALL_GRCOV = 1