Fix coverage reports (#2974)
This commit is contained in:
parent
4d85c1d3c8
commit
f148a4a1ed
9
Makefile
9
Makefile
|
@ -138,14 +138,7 @@ coverage:
|
||||||
@hash gocovmerge > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
@hash gocovmerge > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||||
$(GO) get -u github.com/wadey/gocovmerge; \
|
$(GO) get -u github.com/wadey/gocovmerge; \
|
||||||
fi
|
fi
|
||||||
echo "mode: set" > coverage.all
|
gocovmerge integration.coverage.out $(shell find . -type f -name "coverage.out") > coverage.all;\
|
||||||
for PKG in $(PACKAGES); do\
|
|
||||||
egrep "$$PKG[^/]*\.go" integration.coverage.out > int.coverage.out;\
|
|
||||||
gocovmerge $$GOPATH/src/$$PKG/coverage.out int.coverage.out > pkg.coverage.out;\
|
|
||||||
grep -h -v "^mode:" pkg.coverage.out >> coverage.all;\
|
|
||||||
mv pkg.coverage.out $$GOPATH/src/$$PKG/coverage.out;\
|
|
||||||
rm int.coverage.out;\
|
|
||||||
done;
|
|
||||||
|
|
||||||
.PHONY: unit-test-coverage
|
.PHONY: unit-test-coverage
|
||||||
unit-test-coverage:
|
unit-test-coverage:
|
||||||
|
|
Loading…
Reference in a new issue