mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-04-28 05:20:14 +02:00
fix just cov command
This commit is contained in:
parent
ad1abf6ec8
commit
5d900a303b
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@ vgcore*
|
||||||
example.mid
|
example.mid
|
||||||
cov
|
cov
|
||||||
*/cov
|
*/cov
|
||||||
|
*.profraw
|
||||||
|
|
11
Justfile
11
Justfile
|
@ -6,16 +6,11 @@ cloc:
|
||||||
for src in {cli,edn/src,input/src,jack/src,midi/src,output/src,plugin/src,sampler/src,tek/src,time/src,tui/src}; do echo; echo $src; cloc --quiet $src; done
|
for src in {cli,edn/src,input/src,jack/src,midi/src,output/src,plugin/src,sampler/src,tek/src,time/src,tui/src}; do echo; echo $src; cloc --quiet $src; done
|
||||||
test:
|
test:
|
||||||
cargo test --workspace --exclude jack
|
cargo test --workspace --exclude jack
|
||||||
|
covfig := "CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' RUSTDOCFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cov/cargo-test-%p-%m.profraw'"
|
||||||
cov:
|
cov:
|
||||||
rm -rf target/coverage/html || true
|
rm -rf target/coverage/html || true
|
||||||
export CARGO_INCREMENTAL=0
|
{{covfig}} time cargo test --workspace --exclude jack --profile coverage
|
||||||
export RUSTFLAGS='-Cinstrument-coverage'
|
{{covfig}} time grcov . --binary-path ./target/coverage/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" --ignore 'target/*' -o target/coverage/html
|
||||||
export RUSTDOCFLAGS='-Cinstrument-coverage'
|
|
||||||
export LLVM_PROFILE_FILE='cov/cargo-test-%p-%m.profraw'
|
|
||||||
time cargo test --workspace --exclude jack --profile coverage
|
|
||||||
#export LLVM_PROFILE_FILE='cov/cargo-doctest-%p-%m.profraw'
|
|
||||||
#time cargo test --workspace --exclude jack --profile coverage --doc
|
|
||||||
time grcov . --llvm --threads 2 --binary-path ./target/coverage/deps/ -s . -t html --ignore-not-existing --ignore '../*' --ignore "/*" --ignore 'target/*' -o target/coverage/html
|
|
||||||
llcov:
|
llcov:
|
||||||
time cargo llvm-cov --workspace --exclude jack --profile coverage --no-report
|
time cargo llvm-cov --workspace --exclude jack --profile coverage --no-report
|
||||||
time cargo llvm-cov --workspace --exclude jack --profile coverage --no-report --doc
|
time cargo llvm-cov --workspace --exclude jack --profile coverage --no-report --doc
|
||||||
|
|
Loading…
Reference in a new issue