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 c36a2ed
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
build-dev:
cargo build --tests
setup-coverage-tools:
cargo +stable install cargo-llvm-cov --locked

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

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-rust-checks:
rustup component add rustfmt
Expand Down

0 comments on commit c36a2ed

Please sign in to comment.