Skip to content

Fix code coverage script#74

Merged
tluijken merged 4 commits intodevelopfrom
67-code-coverage-script
May 30, 2024
Merged

Fix code coverage script#74
tluijken merged 4 commits intodevelopfrom
67-code-coverage-script

Conversation

@kevin-pease
Copy link
Copy Markdown
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
Comment thread code-coverage.sh Outdated
@@ -1,3 +1,4 @@
cd stellar_rust_sdk
Copy link
Copy Markdown
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.

Comment thread 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
Copy Markdown
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
@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