From fb2f94997e2c011b3836debf458ea05edb9e29e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Fri, 4 Oct 2019 19:20:32 +0200 Subject: [PATCH] Separate race detection from test phase to allow mutex tests --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 640a0bd..7f812d4 100644 --- a/Makefile +++ b/Makefile @@ -19,9 +19,12 @@ build: deps CGO_ENABLED=0 $(GOBUILD) -o $(BUILD_DIR)/$(BINARY_NAME) -v test: build - $(GOTEST) -v -race -coverprofile=$(TMP_DIR)/c.out ./... + $(GOTEST) -v -coverprofile=$(TMP_DIR)/c.out ./... -coverage: test +race: build + $(GOTEST) -race -v ./... + +coverage: test race mkdir -p $(OUTPUT_DIR) $(GOTOOL) cover -html=$(TMP_DIR)/c.out -o $(OUTPUT_DIR)/coverage.html