From e2846f3936d7ffab833f1eef68b500d6224055cc Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Wed, 26 Jun 2024 17:16:16 +0200 Subject: [PATCH] chore_: exclude cmd from test coverage (#5427) --- _assets/scripts/run_unit_tests.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/_assets/scripts/run_unit_tests.sh b/_assets/scripts/run_unit_tests.sh index beb28776b..878538401 100755 --- a/_assets/scripts/run_unit_tests.sh +++ b/_assets/scripts/run_unit_tests.sh @@ -135,8 +135,11 @@ for package in ${UNIT_TEST_PACKAGES}; do done # Gather test coverage results -rm -f c.out -go run ./cmd/test-coverage-utils/gocovmerge.go $(find -iname "*.coverage.out") >> c.out +rm -f c.out c-full.out +go run ./cmd/test-coverage-utils/gocovmerge.go $(find -iname "*.coverage.out") >> c-full.out + +# Filter out test coverage for packages in ./cmd +grep -v '^github.com/status-im/status-go/cmd/' c-full.out > c.out if [[ $UNIT_TEST_REPORT_CODECLIMATE == 'true' ]]; then # https://docs.codeclimate.com/docs/jenkins#jenkins-ci-builds