build: add coverage target
This commit is contained in:
parent
f23371ac39
commit
57625fe707
1 changed files with 7 additions and 0 deletions
7
justfile
7
justfile
|
|
@ -4,6 +4,13 @@ build *ARGS:
|
|||
test *ARGS:
|
||||
cargo test {{ARGS}}
|
||||
|
||||
test-coverage $CARGO_INCREMENTAL="0" $RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" $RUSTDOCFLAGS="-Cpanic=abort" $LLVM_PROFILE_FILE="argus-%p-%m.profraw":
|
||||
cargo +nightly build
|
||||
cargo +nightly test
|
||||
|
||||
html-cov: test-coverage
|
||||
grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing -o ./target/debug/coverage/
|
||||
|
||||
fmt:
|
||||
fd -e rs -x rustfmt +nightly {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue