Skip to content

Commit 83c9a83

Browse files
committed
Wildly simplify make coverage
1 parent 18e7c4a commit 83c9a83

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,7 @@ coverage:
138138
@hash gocovmerge > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
139139
$(GO) get -u github.com/wadey/gocovmerge; \
140140
fi
141-
echo "mode: set" > coverage.all
142-
for PKG in $(PACKAGES); do\
143-
echo "mode: set" > pkg_integration.coverage.out;\
144-
egrep "$$PKG/[^/]*\.go" integration.coverage.out >> pkg_integration.coverage.out;\
145-
gocovmerge $$GOPATH/src/$$PKG/coverage.out pkg_integration.coverage.out\
146-
| grep -h -v "^mode:" >> coverage.all;\
147-
rm pkg_integration.coverage.out;\
148-
done;
141+
gocovmerge integration.coverage.out $(shell find . -type f -name "coverage.out") > coverage.all;\
149142

150143
.PHONY: unit-test-coverage
151144
unit-test-coverage:

0 commit comments

Comments
 (0)