From f555e6eb958ab6a6eb2769f2be4c356611c07c5c Mon Sep 17 00:00:00 2001 From: Viacheslav Poturaev Date: Mon, 31 May 2021 17:16:24 +0200 Subject: [PATCH] Use short flag to separate unit tests from integration tests (#20) --- makefiles/test-unit.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefiles/test-unit.mk b/makefiles/test-unit.mk index e346ade..7193925 100644 --- a/makefiles/test-unit.mk +++ b/makefiles/test-unit.mk @@ -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