Skip to content

Commit 904c0f7

Browse files
authored
Control count of unit test iterations with env var (#2)
1 parent c3a2549 commit 904c0f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

makefiles/test-unit.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
GO ?= go
2+
UNIT_TEST_COUNT ?= 5
23

34
## Run unit tests
45
test-unit:
56
@echo "Running unit tests."
6-
@$(GO) test -gcflags=-l -coverprofile=unit.coverprofile -count 5 -covermode=atomic -race ./...
7+
@$(GO) test -gcflags=-l -coverprofile=unit.coverprofile -count $(UNIT_TEST_COUNT) -covermode=atomic -race ./...
78

89
.PHONY: test-unit

0 commit comments

Comments
 (0)