diff --git a/Makefile b/Makefile index dfbc8ecf7..410aae443 100644 --- a/Makefile +++ b/Makefile @@ -20,9 +20,6 @@ PWD=$(shell pwd) VERSION_FETCHING_CMD=git describe --always --dirty GOBUILD_VERSION_INJECTION=-ldflags="-X main.version=$(shell $(VERSION_FETCHING_CMD))" -# Don't cover the packages ending by test, and separate the packages by a comma -COVER_PACKAGES=$(shell $(GOLIST) ./app/... | grep -v "test$$" | tr '\n' ',') - # Filter for tests ifdef FILTER TEST_FILTER=-run $(FILTER) @@ -85,7 +82,7 @@ test: $(TEST_REPORT_DIR) $(Q)# Warning: DIRECTORY must be a directory, it will fail if it is a file $(Q)# add FILTER=functionToTest to only test a certain function. functionToTest is a Regex. - $(Q)$(GOTEST) -gcflags=all=-l -race -coverpkg=$(COVER_PACKAGES) -coverprofile=$(TEST_REPORT_DIR)/coverage.txt -covermode=atomic -v $(TEST_DIR) -p 1 -parallel 1 $(TEST_FILTER) + $(Q)$(GOTEST) -gcflags=all=-l -race -coverprofile=$(TEST_REPORT_DIR)/coverage.txt -covermode=atomic -v $(TEST_DIR) -p 1 -parallel 1 $(TEST_FILTER) test-dev: $(Q)$(GOTEST) -gcflags=all=-l $(TEST_DIR) -p 1 -parallel 1 $(TEST_FILTER) test-unit: