Skip to content

Commit

Permalink
fix(tools/coverage.sh): print coverage file locations
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasdewally committed Oct 21, 2024
1 parent f4652ef commit 4e71ce6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tools/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ echo_err "info: running tests"
cargo +nightly test --workspace

echo_err "info: generating coverage reports"
grcov . -s . --binary-path ./target/debug -t html --ignore-not-existing --ignore "$HOME"'/.cargo/**/*.rs' --ignore 'target/**/*.rs' --ignore '**/main.rs' --ignore '**/build.rs' -o ./target/debug/coverage
grcov . -s . --binary-path ./target/debug -t lcov --ignore-not-existing --ignore "$HOME"'/.cargo/**/*.rs' --ignore 'target/**/*.rs' --ignore '.cargo/**/*.rs' --ignore '**/main.rs' --ignore '**/build.rs' -o ./target/debug/lcov.info
grcov . -s . --binary-path ./target/debug -t html --ignore-not-existing --ignore "$HOME"'/.cargo/**/*.rs' --ignore 'target/**/*.rs' --ignore '**/main.rs' --ignore '**/build.rs' -o ./target/debug/coverage || { echo_err "fatal: html coverage generation failed" ; exit 1; }

echo_err "info: html coverage report generated to target/debug/coverage/index.html"

grcov . -s . --binary-path ./target/debug -t lcov --ignore-not-existing --ignore "$HOME"'/.cargo/**/*.rs' --ignore 'target/**/*.rs' --ignore '**/tests/*.rs' --ignore '.cargo/**/*.rs' --ignore '**/main.rs' --ignore '**/build.rs' -o ./target/debug/lcov.info || { echo_err "fatal: lcov coverage generation failed" ; exit 1; }

echo_err "info: lcov coverage report generated to target/debug/lcov.info"

rm -rf **/*.profraw *.profraw

0 comments on commit 4e71ce6

Please sign in to comment.