From 8bb4337caca91aa7e9c96f1eb98a9e9582f42003 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Tue, 7 Aug 2018 15:34:22 -0700 Subject: [PATCH] Makefile: run coverage tests with -tags=debug --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 28406f2a..12ca8194 100644 --- a/Makefile +++ b/Makefile @@ -40,8 +40,10 @@ GOLIST := go list $(PKG)/... | grep -v '/vendor/' GOLISTCOVER := $(shell go list -f '{{.ImportPath}}' ./... | sed -e 's/^$(ESCPKG)/./') GOLISTLINT := $(shell go list -f '{{.Dir}}' ./... | grep -v 'lnrpc') +include make/testing_flags.mk + COVER = for dir in $(GOLISTCOVER); do \ - $(GOTEST) $(TEST_FLAGS) \ + $(GOTEST) -tags="$(TEST_TAGS)" \ -covermode=count \ -coverprofile=$$dir/profile.tmp $$dir; \ \ @@ -75,7 +77,6 @@ define print echo $(GREEN)$1$(NC) endef -include make/testing_flags.mk default: scratch