Files
tidb/parser/test.sh
kennytm 304090faa7 [parser] test: enable coverage when running unit tests (#324)
* test: enable coverage when running unit tests

* README: add codecov badge
2021-10-09 14:53:23 +08:00

12 lines
215 B
Bash

{
mv go.mod1 go.mod
mv go.sum1 go.sum
GO111MODULE=on go test -race -covermode=atomic -coverprofile=coverage.txt ./...
} || {
mv go.mod go.mod1
mv go.sum go.sum1
}
mv go.mod go.mod1
mv go.sum go.sum1