diff --git a/.gitignore b/.gitignore index 77a1c109fa..d69ae7ccff 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ _cgo_export.* _testmain.go +test-report.html coverage.html *.exe diff --git a/Makefile b/Makefile index 1b64368cc2..eec975a841 100644 --- a/Makefile +++ b/Makefile @@ -374,6 +374,11 @@ out/test-report.json: $(SOURCE_FILES) $(GOTEST_FILES) -coverprofile=out/coverage.out -json > out/test-report.json out/coverage.out: out/test-report.json +# Generate go test report (from gotest) as a a HTML page +test-report.html: out/test-report.json + $(if $(quiet),@echo " REPORT $@") + $(Q)go-test-report < $< -o $@ + # Generate go coverage report (from gotest) as a HTML page coverage.html: out/coverage.out $(if $(quiet),@echo " COVER $@")