Skip to content
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

Merged
merged 4 commits into from
May 30, 2024
Merged

Fix code coverage script #74

merged 4 commits into from
May 30, 2024

Conversation

kevin-pease
Copy link
Contributor

✨ 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.

⤵️ What is the current behavior?

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

  • All projects build
  • Follows style guide lines
  • Relevant documentation was updated
  • Rebased onto current main

@tluijken tluijken self-requested a review May 14, 2024 13:24
code-coverage.sh Outdated
@@ -1,3 +1,4 @@
cd stellar_rust_sdk
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

@tluijken tluijken force-pushed the 67-code-coverage-script branch from 7a7e459 to 81ef5d1 Compare May 30, 2024 09:32
@tluijken tluijken merged commit b230149 into develop May 30, 2024
2 checks passed
@tluijken tluijken deleted the 67-code-coverage-script branch May 30, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix code coverage shell script
3 participants