diff --git a/.gitignore b/.gitignore index 5fc2668..12ce4b2 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,4 @@ cover.out cover.*.out .coverage *.prom - +.metrics.*.*.prom diff --git a/Makefile b/Makefile index ced92f8..c38bac3 100644 --- a/Makefile +++ b/Makefile @@ -43,10 +43,10 @@ fmt: tools gofmt -s -w $(GO_SRC) test: tools - @rm -rf $(COVERDIR) @mkdir -p $(COVERDIR) + @rm -f $(COVERDIR)/* for pkg in $(GO_PKGS) ; do \ - go test -v -covermode count -coverprofile=$(COVERDIR)/$(echo $$pkg | tr '/' '-').out $(pkg) ; \ + go test -v -covermode count -coverprofile=$(COVERDIR)/$$(echo $$pkg | tr '/' '-').out $$pkg ; \ done gocovmerge $(shell find $(COVERDIR) -name '*.out') > cover.out