Merge pull request #1712 from cfromknecht/run-coverage-with-debug-tag
Makefile: run coverage tests with -tags=debug
This commit is contained in:
1 file changed
+3
-2
@@ -40,8 +40,10 @@ GOLIST := go list $(PKG)/... | grep -v '/vendor/'
|
|||||||
GOLISTCOVER := $(shell go list -f '{{.ImportPath}}' ./... | sed -e 's/^$(ESCPKG)/./')
|
GOLISTCOVER := $(shell go list -f '{{.ImportPath}}' ./... | sed -e 's/^$(ESCPKG)/./')
|
||||||
GOLISTLINT := $(shell go list -f '{{.Dir}}' ./... | grep -v 'lnrpc')
|
GOLISTLINT := $(shell go list -f '{{.Dir}}' ./... | grep -v 'lnrpc')
|
||||||
|
|
||||||
|
include make/testing_flags.mk
|
||||||
|
|
||||||
COVER = for dir in $(GOLISTCOVER); do \
|
COVER = for dir in $(GOLISTCOVER); do \
|
||||||
$(GOTEST) $(TEST_FLAGS) \
|
$(GOTEST) -tags="$(TEST_TAGS)" \
|
||||||
-covermode=count \
|
-covermode=count \
|
||||||
-coverprofile=$$dir/profile.tmp $$dir; \
|
-coverprofile=$$dir/profile.tmp $$dir; \
|
||||||
\
|
\
|
||||||
@@ -75,7 +77,6 @@ define print
|
|||||||
echo $(GREEN)$1$(NC)
|
echo $(GREEN)$1$(NC)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
include make/testing_flags.mk
|
|
||||||
|
|
||||||
default: scratch
|
default: scratch
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user