chore: use my own go-test-color

main
sudo pacman -Syu 2022-08-16 00:51:21 +07:00 committed by sudo pacman -Syu
parent 1a1fa6f184
commit 6aced97056
2 changed files with 14 additions and 5 deletions

1
.gitignore vendored
View File

@ -12,6 +12,7 @@
# Go
coverage.out
vendor
# GoReleaser
dist

View File

@ -1,14 +1,22 @@
.PHONY: all test coverage-cli coverate-html lint
.PHONY: all test test-color coverage coverage-cli coverate-html lint
all: test lint
all: test-color lint
go mod tidy
test:
go test -race -coverprofile=coverage.out ./...
go test -race -failfast ./...
coverage-cli: test
test-color:
go install github.com/haunt98/go-test-color@latest
go-test-color -race -failfast ./...
coverage:
go test -coverprofile=coverage.out ./...
coverage-cli: coverage
go tool cover -func=coverage.out
coverage-html: test
coverage-html: coverage
go tool cover -html=coverage.out
lint: