Generate coverage html #2170

Merged
lunny merged 4 commits from takumin/xorm:generate-cover-html into master 2023-07-12 13:01:38 +00:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 64c5f295bb - Show all commits

3
.gitignore vendored
View File

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

View File

@ -60,7 +60,7 @@ build: go-check $(GO_SOURCES)
.PHONY: clean
clean:
$(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
coverage:
@ -132,7 +132,8 @@ golangci-lint-check:
.PHONY: test
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
test-cockroach: go-check