[#12] Makefile: Allow to override testflags

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-07-05 10:07:30 +03:00
parent 7a48a24c2a
commit 3b672cf19e

View file

@ -21,9 +21,10 @@ imports:
@goimports -w . @goimports -w .
# Run Unit Test with go test # Run Unit Test with go test
test: GOFLAGS ?= "-count=1"
test: test:
@echo "⇒ Running go test" @echo "⇒ Running go test"
@go test ./... -count=1 @GOFLAGS="$(GOFLAGS)" go test ./...
# Activate pre-commit hooks # Activate pre-commit hooks
pre-commit: pre-commit: