Add new flag for llvm-cov to avoid absolute paths

This commit is contained in:
Dominik Nakamura 2022-04-09 11:16:36 +09:00
parent 8f5fa81f12
commit 6e1e3a902d
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910

View File

@ -13,8 +13,8 @@ coverage:
cargo install cargo-llvm-cov
rustup component add llvm-tools-preview
cargo llvm-cov --html --all-features -- --test-threads 1
cargo llvm-cov --no-run --json --summary-only | \
cargo llvm-cov --remap-path-prefix --html --all-features -- --test-threads 1
cargo llvm-cov --remap-path-prefix --no-run --json --summary-only | \
jq -c '.data[0].totals.lines.percent | { \
schemaVersion: 1, \
label: "coverage", \