coverage
All checks were successful
buildbot/cargo clippy (1.65) Build done.
buildbot/cargo fmt (1.72) Build done.
buildbot/cargo test (1.65) Build done.
buildbot/cargo clippy (1.72) Build done.
buildbot/cargo doc (1.72) Build done.

This commit is contained in:
AF 2023-10-15 06:28:12 +00:00
parent 03a4556138
commit 6b7a5461ac
3 changed files with 25 additions and 0 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
/target
/Cargo.lock
**/*.rs.bk
/prof
*.profraw

17
README.md Normal file
View File

@ -0,0 +1,17 @@
# RADN
## Coverage
```sh
rustup component add llvm-tools
cargo install grcov
```
```sh
export RUSTFLAGS="-Cinstrument-coverage"
export LLVM_PROFILE_FILE="prof/%p-%m.profraw"
```
```sh
./coverage.sh
```

6
coverage.sh Executable file
View File

@ -0,0 +1,6 @@
export RUSTFLAGS="-Cinstrument-coverage"
export LLVM_PROFILE_FILE="prof/%p-%m.profraw"
cargo test
cargo run --example trace
cargo run --example trees
grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing -o ./target/debug/coverage/