Skip to content

Commit

Permalink
refactor(build): remove mocks from modules under test
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <troian.ap@gmail.com>
  • Loading branch information
troian committed Jul 31, 2023
1 parent 78342cc commit 9c4d315
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions make/test-integration.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
COVER_PACKAGES = $(shell go list ./... | grep -v mock | paste -sd, -)

TEST_MODULE ?= ./...
TEST_MODULES ?= $(shell $(GO) list ./... | grep -v '/mocks')

###############################################################################
### Misc tests ###
Expand All @@ -16,15 +16,15 @@ shellcheck:

.PHONY: test
test:
$(GO_TEST) -v -timeout 300s $(TEST_MODULE)
$(GO_TEST) -v -timeout 300s $(TEST_MODULES)

.PHONY: test-nocache
test-nocache:
$(GO_TEST) -count=1 $(TEST_MODULE)
$(GO_TEST) -count=1 $(TEST_MODULES)

.PHONY: test-full
test-full:
$(GO_TEST) -v -tags=$(BUILD_TAGS) $(TEST_MODULE)
$(GO_TEST) -v -tags=$(BUILD_TAGS) $(TEST_MODULES)

.PHONY: test-coverage
test-coverage:
Expand Down

0 comments on commit 9c4d315

Please sign in to comment.