Skip to content

Commit d53e497

Browse files
committed
Rename test-report.* to out/unittest.*
1 parent 5ca8927 commit d53e497

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ _cgo_export.*
2222

2323
_testmain.go
2424

25-
test-report.html
26-
coverage.html
27-
2825
*.exe
2926
*.test
3027
*.prof

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -368,19 +368,19 @@ gotest: $(SOURCE_GENERATED) ## Trigger minikube test
368368
$(Q)go test -tags "$(MINIKUBE_BUILD_TAGS)" -ldflags="$(MINIKUBE_LDFLAGS)" $(MINIKUBE_TEST_FILES)
369369

370370
# Run the gotest, while recording JSON report and coverage
371-
out/test-report.json: $(SOURCE_FILES) $(GOTEST_FILES)
371+
out/unittest.json: $(SOURCE_FILES) $(GOTEST_FILES)
372372
$(if $(quiet),@echo " TEST $@")
373373
$(Q)go test -tags "$(MINIKUBE_BUILD_TAGS)" -ldflags="$(MINIKUBE_LDFLAGS)" $(MINIKUBE_TEST_FILES) \
374-
-coverprofile=out/coverage.out -json > out/test-report.json
375-
out/coverage.out: out/test-report.json
374+
-coverprofile=out/coverage.out -json > out/unittest.json
375+
out/coverage.out: out/unittest.json
376376

377377
# Generate go test report (from gotest) as a a HTML page
378-
test-report.html: out/test-report.json
378+
out/unittest.html: out/unittest.json
379379
$(if $(quiet),@echo " REPORT $@")
380380
$(Q)go-test-report < $< -o $@
381381

382382
# Generate go coverage report (from gotest) as a HTML page
383-
coverage.html: out/coverage.out
383+
out/coverage.html: out/coverage.out
384384
$(if $(quiet),@echo " COVER $@")
385385
$(Q)go tool cover -html=$< -o $@
386386

sonar-project.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ sonar.exclusions=**/*_test.go,pkg/minikube/assets/assets.go,pkg/minikube/transla
77
sonar.tests=cmd,pkg
88
sonar.test.inclusions=**/*_test.go
99

10-
sonar.go.tests.reportPaths=out/test-report.json
10+
sonar.go.tests.reportPaths=out/unittest.json
1111
sonar.go.coverage.reportPaths=out/coverage.out

0 commit comments

Comments
 (0)