Generate coverage html

This commit is contained in:
takumin 2022-08-23 19:28:22 +09:00
parent c3bce55620
commit 64c5f295bb
2 changed files with 5 additions and 3 deletions

3
.gitignore vendored
View File

@ -37,4 +37,5 @@ test.db.sql
test.db test.db
integrations/*.sql integrations/*.sql
integrations/test_sqlite* integrations/test_sqlite*
cover.out cover.out
cover.html

View File

@ -60,7 +60,7 @@ build: go-check $(GO_SOURCES)
.PHONY: clean .PHONY: clean
clean: clean:
$(GO) clean -i ./... $(GO) clean -i ./...
rm -rf *.sql *.log test.db *coverage.out coverage.all integrations/*.sql rm -rf *.sql *.log test.db cover.out cover.html *coverage.out coverage.all integrations/*.sql
.PHONY: coverage .PHONY: coverage
coverage: coverage:
@ -132,7 +132,8 @@ golangci-lint-check:
.PHONY: test .PHONY: test
test: go-check test: go-check
$(GO) test $(PACKAGES) $(GO) test -cover -coverprofile=cover.out $(PACKAGES)
$(GO) tool cover -html=cover.out -o cover.html
.PNONY: test-cockroach .PNONY: test-cockroach
test-cockroach: go-check test-cockroach: go-check