From 34c1eafa5648dc907aa689b4074dbb3a579cabbe Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 2 May 2024 18:14:39 +0300 Subject: [PATCH] [#73] Makefile: Allow to override test flags Signed-off-by: Evgenii Stratonikov --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bf57a03..561a804 100755 --- a/Makefile +++ b/Makefile @@ -22,9 +22,10 @@ imports: @goimports -w . # Run Unit Test with go test +test: GOFLAGS ?= "-count=1" test: @echo "⇒ Running go test" - @go test ./... -count=1 + @GOFLAGS="$(GOFLAGS)" go test ./... # Activate pre-commit hooks pre-commit: