Set timeout for tests in Makefile test target
This commit is contained in:
parent
c9428080e6
commit
0581affa56
6
Makefile
6
Makefile
|
@ -71,14 +71,14 @@ fmt:
|
|||
@$(GOCMD) fmt ./...
|
||||
|
||||
test:
|
||||
@CGO_ENABLED=1 $(GOCMD) test -v -cover -race ./...
|
||||
@CGO_ENABLED=1 $(GOCMD) test -d -v -cover -race -timeout 30s ./...
|
||||
|
||||
coverage:
|
||||
@CGO_ENABLED=1 $(GOCMD) test -v -cover -race -cover -coverprofile=coverage.out ./...
|
||||
@CGO_ENABLED=1 $(GOCMD) test -d -v -cover -race -timeout 30s -cover -coverprofile=coverage.out ./...
|
||||
@$(GOCMD) tool cover -html=coverage.out
|
||||
|
||||
bench:
|
||||
@CGO_ENABLED=1 $(GOCMD) test -v -cover -race -cover -coverprofile=coverage.out ./...
|
||||
@CGO_ENABLED=1 $(GOCMD) test -d -v -cover -race -timeout 30s -cover -coverprofile=coverage.out ./...
|
||||
@CGO_ENABLED=1 $(GOCMD) test -race -benchtime=1x -cpu 16 -benchmem -bench "^(Benchmark)" .
|
||||
|
||||
clean:
|
||||
|
|
Loading…
Reference in New Issue