[#73] Makefile: Allow to override test flags

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
pull/73/head
Evgenii Stratonikov 2024-05-02 18:14:39 +03:00
parent 84c15a559c
commit 34c1eafa56
1 changed files with 2 additions and 1 deletions

View File

@ -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: