build: add target for running tests with race detector
This commit is contained in:
parent
dba20d02eb
commit
96cdf3b9ae
|
@ -50,6 +50,10 @@ test: dev
|
|||
go test -tags "$(GOTAGS)" -i -run '^$$' ./...
|
||||
( set -o pipefail ; go test -tags "$(GOTAGS)" -v ./... 2>&1 | tee test.log )
|
||||
|
||||
test-race: dev
|
||||
go test -tags "$(GOTAGS)" -i -run '^$$' ./...
|
||||
( set -o pipefail ; go test -race -tags "$(GOTAGS)" -v ./... 2>&1 | tee test-race.log )
|
||||
|
||||
cover:
|
||||
go test $(GOFILES) --cover
|
||||
|
||||
|
|
Loading…
Reference in New Issue