aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5a7a4e8..03ae6b3 100644
--- a/Makefile
+++ b/Makefile
@@ -11,10 +11,8 @@ lint:
.PHONY: test
test:
- mkdir -p _coverage
- go test -cover ./... -test.gocoverdir=_coverage
- go tool covdata textfmt -i=_coverage -o cover.txt
- go tool cover -html=cover.txt -o cover.html
+ CGO_ENABLED=1 go test -race -coverprofile=cover.out ./...
+ go tool cover -html=cover.out -o cover.html
.PHONY: pre-push
pre-push: