diff --git a/.gitignore b/.gitignore index bc9f4600..edd1254d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /testdata .idea/ /mark.test +/profile.cov diff --git a/Makefile b/Makefile index 9ede00b0..9f1df9b6 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,9 @@ build: -ldflags "-X main.version=$(VERSION)" \ -gcflags "-trimpath $(GOPATH)/src" +test: + go test -race -coverprofile=profile.cov ./... + image: @echo :: building image $(NAME):$(VERSION) @docker build -t $(NAME):$(VERSION) -f Dockerfile .