1#!/usr/bin/env bash 2set -e 3echo "" > coverage.out 4 5for d in $(go list ./pkg/...); do 6 go test -race -coverprofile=profile.out -covermode=atomic $d 7 if [ -f profile.out ]; then 8 cat profile.out >> coverage.out 9 rm profile.out 10 fi 11done 12
1#!/usr/bin/env bash 2set -e 3echo "" > coverage.out 4 5for d in $(go list ./pkg/...); do 6 go test -race -coverprofile=profile.out -covermode=atomic $d 7 if [ -f profile.out ]; then 8 cat profile.out >> coverage.out 9 rm profile.out 10 fi 11done 12