mirror of
https://gitlab.com/hyask/swaysome.git
synced 2025-12-10 07:44:43 +01:00
489 B
489 B
Hacking on swaysome
Get the coverage of the test to improve them
You'll need more toolchain components:
rustup component add llvm-tools-preview
Then run the tests with coverage profiling, and generate the HTML report:
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test
grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage