Browse Source

Fix coverage reports (#2974)

Ethan Koenig 2 years ago
parent
commit
f148a4a1ed
1 changed files with 1 additions and 8 deletions
  1. 1 8
      Makefile

+ 1 - 8
Makefile

@@ -138,14 +138,7 @@ coverage:
138 138
 	@hash gocovmerge > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
139 139
 		$(GO) get -u github.com/wadey/gocovmerge; \
140 140
 	fi
141
-	echo "mode: set" > coverage.all
142
-	for PKG in $(PACKAGES); do\
143
-		egrep "$$PKG[^/]*\.go" integration.coverage.out > int.coverage.out;\
144
-		gocovmerge $$GOPATH/src/$$PKG/coverage.out int.coverage.out > pkg.coverage.out;\
145
-		grep -h -v "^mode:" pkg.coverage.out >>  coverage.all;\
146
-		mv pkg.coverage.out $$GOPATH/src/$$PKG/coverage.out;\
147
-		rm int.coverage.out;\
148
-	done;
141
+	gocovmerge integration.coverage.out $(shell find . -type f -name "coverage.out") > coverage.all;\
149 142
 
150 143
 .PHONY: unit-test-coverage
151 144
 unit-test-coverage: