fix_: include coverage from all packages (#5390)
This commit is contained in:
parent
43c9860491
commit
a049f0b688
|
@ -135,8 +135,7 @@ done
|
||||||
|
|
||||||
# Gather test coverage results
|
# Gather test coverage results
|
||||||
rm -f c.out
|
rm -f c.out
|
||||||
echo "mode: atomic" > c.out
|
go run ./cmd/test-coverage-utils/gocovmerge.go $(find -iname "*.coverage.out") >> c.out
|
||||||
grep -r -h -v "^mode:" --include "*.coverage.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
|
||||||
|
|
|
@ -4,4 +4,5 @@ coverage_file_path="$(mktemp coverage.out.rerun.XXXXXXXXXX --tmpdir="${PACKAGE_D
|
||||||
go test -json \
|
go test -json \
|
||||||
-covermode=atomic \
|
-covermode=atomic \
|
||||||
-coverprofile="${coverage_file_path}" \
|
-coverprofile="${coverage_file_path}" \
|
||||||
|
-coverpkg ./... \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
Loading…
Reference in New Issue