Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions makefiles/test-unit.mk
Original file line number Diff line number Diff line change
@@ -4,11 +4,11 @@ UNIT_TEST_COUNT ?= 2
## Run unit tests
test-unit:
@echo "Running unit tests."
@$(GO) test -gcflags=-l -coverprofile=unit.coverprofile -covermode=atomic -race ./...
@$(GO) test -short -gcflags=-l -coverprofile=unit.coverprofile -covermode=atomic -race ./...

## Run unit tests multiple times
test-unit-multi:
@echo "Running unit tests ${UNIT_TEST_COUNT} times."
@$(GO) test -gcflags=-l -coverprofile=unit.coverprofile -count $(UNIT_TEST_COUNT) -covermode=atomic -race ./...
@$(GO) test -short -gcflags=-l -coverprofile=unit.coverprofile -count $(UNIT_TEST_COUNT) -covermode=atomic -race ./...

.PHONY: test-unit test-unit-multi

0 comments on commit f555e6e

Please sign in to comment.