From 4bee618699ac32b33b05f53b0e1a997cca82ed79 Mon Sep 17 00:00:00 2001 From: Matthias Berkenkamp Date: Tue, 1 Aug 2017 10:18:28 +0200 Subject: [PATCH] add coverage folder --- .coverage/.gitkeep | 0 .gitignore | 1 - Makefile | 3 +-- 3 files changed, 1 insertion(+), 3 deletions(-) create mode 100644 .coverage/.gitkeep diff --git a/.coverage/.gitkeep b/.coverage/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/.gitignore b/.gitignore index 12ce4b2d..476bc9b4 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,5 @@ postgres_exporter_integration_test *.iml cover.out cover.*.out -.coverage *.prom .metrics.*.*.prom diff --git a/Makefile b/Makefile index 8772bdce..ec22c2ad 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -COVERDIR = /tmp/coverage/ +COVERDIR = .coverage TOOLDIR = tools GO_SRC := $(shell find . -name '*.go' ! -path '*/vendor/*' ! -path 'tools/*' ) @@ -43,7 +43,6 @@ fmt: tools gofmt -s -w $(GO_SRC) test: tools - mkdir -p $(COVERDIR) rm -f $(COVERDIR)/* for pkg in $(GO_PKGS) ; do \ go test -v -covermode count -coverprofile=$(COVERDIR)/$$(echo $$pkg | tr '/' '-').out $$pkg ; \