tengri/Justfile
unspeaker 17506726cb
Some checks are pending
/ build (push) Waiting to run
wip: updating tests
2025-06-12 21:56:59 +03:00

17 lines
891 B
Makefile

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/*'"
bacon:
{{covfig}} bacon -s
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