mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 03:36:41 +01:00
generate coverage from correct target
This commit is contained in:
parent
be6bd32b78
commit
ffe8893bed
8 changed files with 57 additions and 12 deletions
11
Justfile
11
Justfile
|
|
@ -7,14 +7,21 @@ cloc:
|
|||
test:
|
||||
cargo test --workspace --exclude jack
|
||||
cov:
|
||||
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cov/cargo-test-%p-%m.profraw' cargo test --workspace --exclude jack
|
||||
grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/html
|
||||
rm -rf target/coverage/html || true
|
||||
export CARGO_INCREMENTAL=0
|
||||
export RUSTFLAGS='-Cinstrument-coverage'
|
||||
export RUSTDOCFLAGS='-Cinstrument-coverage'
|
||||
export LLVM_PROFILE_FILE='cov/cargo-test-%p-%m.profraw'
|
||||
time cargo test --workspace --exclude jack --profile coverage
|
||||
time grcov . --binary-path ./target/coverage/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" --ignore 'target/*' -o target/coverage/html
|
||||
prof:
|
||||
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -- arranger
|
||||
status:
|
||||
cargo c
|
||||
cloc --by-file src/
|
||||
git status
|
||||
doc:
|
||||
cargo doc --document-private-items
|
||||
|
||||
upstreams := "codeberg origin" # TODO!
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue