mirror of
https://codeberg.org/unspeaker/vestal.git
synced 2025-05-02 15:20:13 +02:00
add coverage command to justfile
This commit is contained in:
parent
e3cc8395e1
commit
bc4f78f477
19
Justfile
19
Justfile
|
@ -8,3 +8,22 @@ vst-v:
|
|||
clear; tmux clear-history || true; cargo build && target/debug/vestal -v bin/vst.dll 2>&1
|
||||
wrapper:
|
||||
cargo build -p vestal_wrapper --release --target=x86_64-unknown-linux-musl
|
||||
|
||||
covfig := "CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' RUSTDOCFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cov/cargo-test-%p-%m.profraw'"
|
||||
grcov-binary := "--binary-path ./target/coverage/deps/"
|
||||
grcov-ignore := "--ignore-not-existing --ignore '../*' --ignore \"/*\" --ignore 'target/*'"
|
||||
cov:
|
||||
{{covfig}} time cargo test -j4 --workspace --profile coverage
|
||||
rm -rf target/coverage/html || true
|
||||
{{covfig}} time grcov . -s . {{grcov-binary}} {{grcov-ignore}} -t html -o target/coverage/html
|
||||
cov-md:
|
||||
{{covfig}} time cargo test -j4 --workspace --profile coverage
|
||||
{{covfig}} time grcov . -s . {{grcov-binary}} {{grcov-ignore}} -t markdown | sort
|
||||
cov-md-ci:
|
||||
{{covfig}} time cargo test -j4 --workspace --profile coverage -- --skip test_tui_engine
|
||||
{{covfig}} time grcov . -s . {{grcov-binary}} {{grcov-ignore}} -t markdown | sort
|
||||
doc:
|
||||
cargo doc
|
||||
|
||||
build-release:
|
||||
time cargo build -j4 --release
|
||||
|
|
Loading…
Reference in a new issue