swaysome/HACKING.md
2025-04-13 14:58:42 +02:00

14 lines
489 B
Markdown

# 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
```