From 3b672cf19e3a20795a407cf3de5b9c41adbb718c Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 5 Jul 2024 10:07:30 +0300 Subject: [PATCH] [#12] Makefile: Allow to override testflags Signed-off-by: Evgenii Stratonikov --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5ba4679..0dd4e3f 100755 --- a/Makefile +++ b/Makefile @@ -21,9 +21,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: