From 6c789e37875fa3c4e425a05bb9bac947b025d69f Mon Sep 17 00:00:00 2001 From: Bradford Lamson-Scribner Date: Thu, 4 Jun 2020 21:07:12 -0600 Subject: [PATCH] build: add small makefile with a test command that colors go test output --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..649fd27 --- /dev/null +++ b/Makefile @@ -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")/''