mirror of https://github.com/status-im/consul.git
build: add target for running tests with race detector
This commit is contained in:
parent
9509ab463c
commit
53fd15070d
|
@ -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