build: add small makefile with a test command that colors go test output

This commit is contained in:
Bradford Lamson-Scribner 2020-06-04 21:07:12 -06:00
parent 63a218e073
commit 6c789e3787
1 changed files with 5 additions and 0 deletions

5
Makefile Normal file
View File

@ -0,0 +1,5 @@
GOPATH:=$(shell go env GOPATH)
.PHONY: test
test:
go test ./... -v -race -bench=. | sed ''/PASS/s//$$(printf "\033[32mPASS\033[0m")/'' | sed ''/FAIL/s//$$(printf "\033[31mFAIL\033[0m")/''