diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-03-25 08:12:42 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-03-25 08:12:42 +0300 |
commit | 1b12858fdd087945795c09097912281ecfdbfa74 (patch) | |
tree | a4552421e08c5971274a9985f22d612519d22ed8 /Makefile.util.mk | |
parent | c6279e7db3486834570a0ddcbdc9889355388d11 (diff) |
Fix make cover
Diffstat (limited to 'Makefile.util.mk')
-rw-r--r-- | Makefile.util.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.util.mk b/Makefile.util.mk index ff9ad16d..6fa4e319 100644 --- a/Makefile.util.mk +++ b/Makefile.util.mk @@ -23,9 +23,10 @@ bench: .GOPATH/.ok gitlab-pages go test -bench=. -run=^$$ $(allpackages) # The acceptance tests cannot count for coverage -cover: bin/gocovmerge .GOPATH/.ok gitlab-pages +cover: bin/gocovmerge gitlab-pages @echo "NOTE: make cover does not exit 1 on failure, don't use it to check for tests success!" $Q rm -f .GOPATH/cover/*.out .GOPATH/cover/all.merged + $Q mkdir -p .GOPATH/cover $(if $V,@echo "-- go test -coverpkg=./... -coverprofile=.GOPATH/cover/... ./...") @for MOD in $(allpackages); do \ go test \ |