We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d276585 commit af4cbbbCopy full SHA for af4cbbb
Makefile.Common
@@ -41,9 +41,10 @@ IMPI=impi
41
BUILD_TYPE?=release
42
43
# COVER_PKGS is the list of packages to include in the test coverage
44
-MAIN_PKGS := $(shell go list ./... | tr "\n" ",")
45
-SIGNALFX_PKGS := $(shell cd internal/signalfx-agent && go list ./... | tr "\n" ",")
46
-COVER_PKGS := $(MAIN_PKGS)$(SIGNALFX_PKGS)
+EXCLUDE_MODS=-not -path "./examples/*"
+FIND_MOD_ARGS=-type f -name "go.mod"
+COVER_PKGS := $(shell find . $(EXCLUDE_MODS) $(FIND_MOD_ARGS) -execdir $(GOCMD) list ./... \; | tr "\n" "," )
47
+
48
COVER_DIR?=coverage
49
COVER_DIR_ABS?=$(PWD)/$(COVER_DIR)
50
TEST_COVER_DIR?=$(PWD)/tests/$(COVER_DIR)
0 commit comments