-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump dependencies and add coverage script
- Loading branch information
Showing
5 changed files
with
32 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.idea | ||
.history | ||
Cargo.lock | ||
*.profraw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# Doc for grcov | ||
# https://github.com/mozilla/grcov | ||
# | ||
|
||
function deleteProfRawFile { | ||
find . -name "*.profraw" -type f -delete | ||
} | ||
|
||
set -xe | ||
deleteProfRawFile | ||
cargo clean | ||
export RUSTFLAGS="-Cinstrument-coverage" | ||
cargo build | ||
export LLVM_PROFILE_FILE="adana-%p-%m.profraw" | ||
cargo test | ||
grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing -o ./target/debug/coverage/ | ||
xdg-open "target/debug/coverage/index.html" | ||
deleteProfRawFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[toolchain] | ||
channel = "1.82" | ||
components = ["llvm-tools-preview"] # for coverage |