Skip to content

Commit

Permalink
Correct all make targets to test the same directories (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
thom-at-redhat authored Oct 30, 2024
1 parent 875e98c commit 9acd1c0
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -151,18 +151,23 @@ BLOCKLIST='/tests/|mock_|example'
COVERAGE_FILE='coverage.txt'

coverage: build-all
PATH="${PWD}:${PATH}" $(GO) test $$($(GO) list ./... | grep -vE $(BLOCKLIST)) \
$(TESTCMD) \
-count=1 \
-cover \
-covermode=atomic \
-coverprofile=$(COVERAGE_FILE) \
-race \
-timeout 5m
PATH="${PWD}:${PATH}" \
$(GO) test $$($(GO) list ./... | grep -vE $(BLOCKLIST)) \
$(TESTCMD) \
-count=1 \
-cover \
-covermode=atomic \
-coverprofile=$(COVERAGE_FILE) \
-race \
-timeout 5m

test: receptor
PATH="${PWD}:${PATH}" \
$(GO) test ./... $(TESTCMD) -count=1 -race -timeout 5m
$(GO) test $$($(GO) list ./... | grep -vE $(BLOCKLIST)) \
$(TESTCMD) \
-count=1 \
-race \
-timeout 5m

receptorctl-test: receptorctl/.VERSION receptor
@cd receptorctl && nox -s tests
Expand Down

0 comments on commit 9acd1c0

Please sign in to comment.