From 0a0bc68e9590fdad2ec49dd2439188ae90313c94 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Thu, 23 Jul 2020 21:47:11 -0400 Subject: [PATCH] show verbose test output to prevent circleci kills --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 52c290b85..42e52dce3 100644 --- a/Makefile +++ b/Makefile @@ -114,7 +114,7 @@ check-licenses: .PHONY: unit unit: ## Run unit tests (with coverage) $(call title,Running unit tests) - go test -coverprofile $(COVER_REPORT) ./... + go test -v -coverprofile $(COVER_REPORT) ./... @go tool cover -func $(COVER_REPORT) | grep total | awk '{print substr($$3, 1, length($$3)-1)}' > $(COVER_TOTAL) @echo "Coverage: $$(cat $(COVER_TOTAL))" @if [ $$(echo "$$(cat $(COVER_TOTAL)) >= $(COVERAGE_THRESHOLD)" | bc -l) -ne 1 ]; then echo "$(RED)$(BOLD)Failed coverage quality gate (> $(COVERAGE_THRESHOLD)%)$(RESET)" && false; fi