Move test-report.json and coverage.out to out dir
parent
9c0917d983
commit
f3c34f9f1f
|
|
@ -21,9 +21,7 @@ _cgo_gotypes.go
|
||||||
_cgo_export.*
|
_cgo_export.*
|
||||||
|
|
||||||
_testmain.go
|
_testmain.go
|
||||||
test-report.json
|
|
||||||
|
|
||||||
coverage.out
|
|
||||||
coverage.html
|
coverage.html
|
||||||
|
|
||||||
*.exe
|
*.exe
|
||||||
|
|
|
||||||
9
Makefile
9
Makefile
|
|
@ -367,12 +367,13 @@ gotest: $(SOURCE_GENERATED) ## Trigger minikube test
|
||||||
$(if $(quiet),@echo " TEST $@")
|
$(if $(quiet),@echo " TEST $@")
|
||||||
$(Q)go test -tags "$(MINIKUBE_BUILD_TAGS)" -ldflags="$(MINIKUBE_LDFLAGS)" $(MINIKUBE_TEST_FILES)
|
$(Q)go test -tags "$(MINIKUBE_BUILD_TAGS)" -ldflags="$(MINIKUBE_LDFLAGS)" $(MINIKUBE_TEST_FILES)
|
||||||
|
|
||||||
test-report.json: $(SOURCE_FILES) $(GOTEST_FILES)
|
out/test-report.json: $(SOURCE_FILES) $(GOTEST_FILES)
|
||||||
$(if $(quiet),@echo " TEST $@")
|
$(if $(quiet),@echo " TEST $@")
|
||||||
$(Q)go test -tags "$(MINIKUBE_BUILD_TAGS)" -ldflags="$(MINIKUBE_LDFLAGS)" -json $(MINIKUBE_TEST_FILES) -coverprofile=coverage.out > test-report.json
|
$(Q)go test -tags "$(MINIKUBE_BUILD_TAGS)" -ldflags="$(MINIKUBE_LDFLAGS)" $(MINIKUBE_TEST_FILES) \
|
||||||
|
-json -coverprofile=out/coverage.out > out/test-report.json
|
||||||
|
|
||||||
coverage.out: test-report.json
|
out/coverage.out: out/test-report.json
|
||||||
coverage.html: coverage.out
|
coverage.html: out/coverage.out
|
||||||
$(if $(quiet),@echo " COVER $@")
|
$(if $(quiet),@echo " COVER $@")
|
||||||
$(Q)go tool cover -html=$< -o $@
|
$(Q)go tool cover -html=$< -o $@
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,5 @@ sonar.exclusions=**/*_test.go,pkg/minikube/assets/assets.go,pkg/minikube/transla
|
||||||
sonar.tests=cmd,pkg
|
sonar.tests=cmd,pkg
|
||||||
sonar.test.inclusions=**/*_test.go
|
sonar.test.inclusions=**/*_test.go
|
||||||
|
|
||||||
sonar.go.tests.reportPaths=test-report.json
|
sonar.go.tests.reportPaths=out/test-report.json
|
||||||
sonar.go.coverage.reportPaths=coverage.out
|
sonar.go.coverage.reportPaths=out/coverage.out
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue