tengri/Justfile
facile pop culture reference 799e497622
Some checks are pending
/ build (push) Waiting to run
fix and coverage for layout modifiers
2026-08-06 18:29:03 +03:00

33 lines
1.1 KiB
Makefile

export 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/*'"
[private]
default:
@just -l
bacon:
bacon -s
cov:
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' \
time cargo test -j4 --workspace --profile coverage
rm -rf target/coverage/html || true
time grcov . -s . {{grcov-binary}} {{grcov-ignore}} -t html -o target/coverage/html && reset
cov-md:
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' \
time cargo test -j4 --workspace --profile coverage
time grcov . -s . {{grcov-binary}} {{grcov-ignore}} -t markdown | sort
cov-md-ci:
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' \
time cargo test -j4 --workspace --profile coverage -- --skip test_tui_engine
time grcov . -s . {{grcov-binary}} {{grcov-ignore}} -t markdown | sort
doc:
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' RUSTDOCFLAGS='-Cinstrument-coverage' \
cargo doc
mode MODE:
cargo run --example "mode_{{MODE}}"