Skip to content

Commit

Permalink
[parser] test: count coverage for all packages when unit testing (pin…
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm authored and ti-chi-bot committed Oct 9, 2021
1 parent 6c5f758 commit d2849ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parser/test.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d2849ff

Please sign in to comment.