-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix code coverage script #74
Conversation
code-coverage.sh
Outdated
@@ -1,3 +1,4 @@ | |||
cd stellar_rust_sdk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dit kan, maar is niet zo fraai. Mooiste is om cargo test
met een manifest file aan te roepen. Mocht je relatieve paden met dependencies hebben (zoals de derive crate) dan werkt dat ook mooi. Zie onderstaande suggestie.
code-coverage.sh
Outdated
@@ -1,3 +1,4 @@ | |||
cd stellar_rust_sdk | |||
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test | |
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test --manifest-path=stellar_rust_sdk/Cargo.toml |
Dit is ook in lijn met de github workflows voor dit project.
7a7e459
to
81ef5d1
Compare
✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)
Updates the shell script for checking the code coverage. Includes minor test value updates to prevent a blocked PR.
Fixes #67.
The script fails because it cannot find input files.
🆕 What is the new behavior (if this is a feature change)?
A simple directory change command at the beginning of the script.
💥 Does this PR introduce a breaking change?
No.
🤔 Checklist before submitting