fix_: include coverage from all packages (#5390)

This commit is contained in:
Igor Sirotin 2024-06-20 21:35:35 +01:00 committed by GitHub
parent 43c9860491
commit a049f0b688
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -135,8 +135,7 @@ done
# Gather test coverage results
rm -f c.out
echo "mode: atomic" > c.out
grep -r -h -v "^mode:" --include "*.coverage.out" >> c.out
go run ./cmd/test-coverage-utils/gocovmerge.go $(find -iname "*.coverage.out") >> c.out
if [[ $UNIT_TEST_REPORT_CODECLIMATE == 'true' ]]; then
# https://docs.codeclimate.com/docs/jenkins#jenkins-ci-builds

View File

@ -4,4 +4,5 @@ coverage_file_path="$(mktemp coverage.out.rerun.XXXXXXXXXX --tmpdir="${PACKAGE_D
go test -json \
-covermode=atomic \
-coverprofile="${coverage_file_path}" \
-coverpkg ./... \
"$@"