chore_: exclude cmd from test coverage (#5427)

This commit is contained in:
Igor Sirotin 2024-06-26 17:16:16 +02:00 committed by GitHub
parent 1ba4b86c7e
commit e2846f3936
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -135,8 +135,11 @@ for package in ${UNIT_TEST_PACKAGES}; do
done done
# Gather test coverage results # Gather test coverage results
rm -f c.out rm -f c.out c-full.out
go run ./cmd/test-coverage-utils/gocovmerge.go $(find -iname "*.coverage.out") >> c.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 if [[ $UNIT_TEST_REPORT_CODECLIMATE == 'true' ]]; then
# https://docs.codeclimate.com/docs/jenkins#jenkins-ci-builds # https://docs.codeclimate.com/docs/jenkins#jenkins-ci-builds