chore: use my own go-test-color
parent
1a1fa6f184
commit
6aced97056
|
@ -12,6 +12,7 @@
|
|||
|
||||
# Go
|
||||
coverage.out
|
||||
vendor
|
||||
|
||||
# GoReleaser
|
||||
dist
|
||||
|
|
18
Makefile
18
Makefile
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue