You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to configurate gitlab ci-cd for rust and I would like to have a test's coverage. I used the instruction from grcov but when I try to run grcov target/coverage --binary-path target/debug -s . -o target/coverage --keep-only 'src/*' --output-types html,cobertura I get this rust's panic message: A panic occurred at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/grcov-0.8.19/src/producer.rs:544: No input files found.
I can't understand where I messed up.
Full gitlab-ci sript body
variables:
LLVM_PROFILE_FILE: "target/coverage/%p-%m.profraw"
script:
- apt update
- apt upgrade -y
- apt install -y pkg-config libssl-dev
- cargo test
- mkdir target/coverage
- cargo install grcov
- grcov target/coverage --binary-path target/debug -s . -o target/coverage --keep-only 'src/*' --output-types html,cobertura
# Extract just the top-level coverage number from the XML report.
- xmllint --xpath "concat('Coverage:\ ', 100 * string(//coverage/@line-rate), '%')" target/coverage/cobertura.xml
The text was updated successfully, but these errors were encountered:
I try to configurate gitlab ci-cd for rust and I would like to have a test's coverage. I used the instruction from
grcov
but when I try to rungrcov target/coverage --binary-path target/debug -s . -o target/coverage --keep-only 'src/*' --output-types html,cobertura
I get this rust's panic message:A panic occurred at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/grcov-0.8.19/src/producer.rs:544: No input files found
.I can't understand where I messed up.
Full gitlab-ci sript body
The text was updated successfully, but these errors were encountered: