Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Switched to using cargo-llvm-cov for coverage
Browse files Browse the repository at this point in the history
This is simpler to use and also cleaner.
  • Loading branch information
Michelle Tran committed Apr 14, 2023
1 parent 408947a commit 68a1d98
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
build-dev:
cargo build --tests
build:
cargo build

setup-grcov:
cargo install grcov
setup-all: build setup-coverage-tools setup-rust-checks

coverage: build-dev setup-grcov
RUSTFLAGS="-C instrument-coverage" cargo test
grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing -o ./target/debug/coverage/
rm *.profraw
setup-coverage-tools:
cargo +stable install cargo-llvm-cov --locked

coverage: setup-coverage-tools
cargo llvm-cov --open

setup-rust-checks:
rustup component add rustfmt
Expand Down

0 comments on commit 68a1d98

Please sign in to comment.