File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ postgres_exporter_integration_test
88* .iml
99cover.out
1010cover. * .out
11+ .coverage
1112* .prom
1213.metrics. * . * .prom
Original file line number Diff line number Diff line change @@ -42,11 +42,14 @@ lint: tools
4242fmt : tools
4343 gofmt -s -w $(GO_SRC )
4444
45- test : tools
45+ run-tests : tools
46+ mkdir -p $(COVERDIR )
4647 rm -f $(COVERDIR ) /*
4748 for pkg in $( GO_PKGS) ; do \
4849 go test -v -covermode count -coverprofile=$(COVERDIR ) /$$(echo $$pkg | tr '/' '-' ) .out $$ pkg ; \
4950 done
51+
52+ test : run-tests
5053 gocovmerge $(shell find $(COVERDIR ) -name '* .out') > cover.test.out
5154
5255test-integration : postgres_exporter postgres_exporter_integration_test
7376 $(MAKE ) -C $(TOOLDIR )
7477
7578clean :
76- rm -f postgres_exporter postgres_exporter_integration_test
79+ rm -rf postgres_exporter postgres_exporter_integration_test $( COVERDIR )
7780
7881.PHONY : tools docker-build docker lint fmt test vet push cross clean
You can’t perform that action at this time.
0 commit comments