generate coverage from correct target

This commit is contained in:
🪞👃🪞 2025-01-22 12:49:15 +01:00
parent be6bd32b78
commit ffe8893bed
8 changed files with 57 additions and 12 deletions

View file

@ -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!