Skip to content

Commit

Permalink
Remove command and integrate new path in commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-pease authored and Thomas Luijken committed May 30, 2024
1 parent 35181c7 commit f5ffbda
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions code-coverage.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cd stellar_rust_sdk
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/html
rm *.profraw
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test --manifest-path=stellar_rust_sdk/Cargo.toml
grcov . --binary-path stellar_rust_sdk/target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o stellar_rust_sdk/target/coverage/html
rm stellar_rust_sdk/*.profraw
# open the coverage report in the browser
xdg-open target/coverage/html/index.html
xdg-open target/coverage/html/index.html

0 comments on commit f5ffbda

Please sign in to comment.