X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=build%2Fmake.go.mk;h=35fc3a7cc6c3d119f74f918981824c7f1ee0b850;hb=refs%2Ftags%2Fv0.9.11;hp=fb20da3088d9d43bd3f10e26cef9faf877e9e0b5;hpb=0ea2b6f7104cf323f039ce2a116fbc00a04cb6b6;p=ric-plt%2Fxapp-frame.git diff --git a/build/make.go.mk b/build/make.go.mk index fb20da3..35fc3a7 100755 --- a/build/make.go.mk +++ b/build/make.go.mk @@ -64,7 +64,7 @@ $(GO_CACHE_DIR)/%: $(GOFILES) $(GOMODFILES) $$(BUILDDEPS) .SECONDEXPANSION: $(GO_CACHE_DIR)/%_test: $(GOALLFILES) $(GOMODFILES) $$(BUILDDEPS) FORCE @echo "Testing:\t$*" - @eval GO111MODULE=on GOSUMDB=off GO_ENABLED=0 GOOS=linux $(BUILDARGS) $(GOTEST) -coverprofile $(COVEROUT) -c -o $@ ./$* + @eval GO111MODULE=on GOSUMDB=off GO_ENABLED=0 GOOS=linux $(BUILDARGS) $(GOTEST) -cover -coverprofile=coverage.out -c -o $@ ./$* @if test -e $@ ; then eval $(TESTENV) $@ -test.v -test.coverprofile $(COVEROUT); else true ; fi @if test -e $@ ; then go tool cover -html=$(COVEROUT) -o $(COVERHTML); else true ; fi