-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/rm-dead_code-attribute
- Loading branch information
Showing
12 changed files
with
53 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,23 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
anvil --fork-url https://eth.merkle.io --fork-block-number 20395662 & | ||
# Configuration | ||
export PROPTEST_CASES=5 | ||
export ETH_FORK_URL=https://eth.merkle.io | ||
|
||
subshell() { | ||
set -e | ||
rm -f target/madara-* lcov.info | ||
# Clean up previous coverage data | ||
rm -f target/madara-* lcov.info | ||
|
||
source <(cargo llvm-cov show-env --export-prefix) | ||
# Set up LLVM coverage environment | ||
source <(cargo llvm-cov show-env --export-prefix) | ||
|
||
cargo build --bin madara --profile dev | ||
# Build the binary with coverage instrumentation | ||
cargo build --bin madara --profile dev | ||
export COVERAGE_BIN=$(realpath target/debug/madara) | ||
|
||
export COVERAGE_BIN=$(realpath target/debug/madara) | ||
export ETH_FORK_URL=https://eth.merkle.io | ||
# Run tests with coverage collection | ||
cargo test --profile dev "${@:-"--workspace"}" | ||
|
||
# wait for anvil | ||
while ! nc -z localhost 8545; do | ||
sleep 1 | ||
done | ||
|
||
|
||
ARGS=$@ | ||
export PROPTEST_CASES=5 | ||
cargo test --profile dev ${ARGS:=--workspace} | ||
|
||
cargo llvm-cov report --lcov --output-path lcov.info | ||
cargo llvm-cov report | ||
} | ||
|
||
(subshell $@ && r=$?) || r=$? | ||
pkill -P $$ | ||
exit $r | ||
# Generate coverage reports | ||
cargo llvm-cov report --lcov --output-path lcov.info # Generate LCOV report | ||
cargo llvm-cov report # Display coverage summary in terminal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters