From cb83f92f1c6e3c24c1236573f204a84479ba8950 Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Thu, 25 Jan 2018 17:03:02 -0600 Subject: [PATCH] Test with -race and -cover. Signed-off-by: Matt Moyer --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 37dd434e3..00f78451c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ default: build +GITHUB_REPO ?= github.com/heptio/authenticator GORELEASER := $(shell command -v goreleaser 2> /dev/null) .PHONY: build test format @@ -11,7 +12,7 @@ endif $(GORELEASER) --skip-publish --rm-dist --snapshot test: - go test -v ./... + go test -v -cover -race $(GITHUB_REPO)/... format: test -z "$$(find . -path ./vendor -prune -type f -o -name '*.go' -exec gofmt -d {} + | tee /dev/stderr)" || \