Skip to content

apply suggestions to coverage PR #2853

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

Merged
merged 1 commit into from
Jun 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions scripts/report_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ go tool covdata merge -i=$PWD/coverage/e2e,$PWD/coverage/ut -o $PWD/coverage/mer

go tool covdata textfmt -i $PWD/coverage/merged/ -o profile.txt

cat profile.txt\
| grep -v github.com/ava-labs/avalanche-cli/internal/mocks\
| grep -v github.com/ava-labs/avalanche-cli/sdk/mocks > profile.tmp
cat profile.txt | grep -v mocks > profile.tmp
mv profile.tmp profile.txt

go tool cover -func profile.txt > coverage.txt
Expand Down Expand Up @@ -64,3 +62,4 @@ echo Total functions: $total_functions
echo Covered functions: $covered_functions
echo Coverage: $coverage

go tool cover -html profile.txt -o coverage.html
Loading