diff --git a/parser/test.sh b/parser/test.sh index 0522c27d9c2d9..44bb0d9855800 100644 --- a/parser/test.sh +++ b/parser/test.sh @@ -1,7 +1,8 @@ { mv go.mod1 go.mod mv go.sum1 go.sum - GO111MODULE=on go test -race -covermode=atomic -coverprofile=coverage.txt ./... + GO111MODULE=on go test -race ./... && + GO111MODULE=on go test -covermode=set -coverprofile=coverage.txt -coverpkg=./... ./... } || { mv go.mod go.mod1 mv go.sum go.sum1