forked from TrueCloudLab/policy-engine
[#73] Makefile: Allow to override test flags
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
84c15a559c
commit
34c1eafa56
1 changed files with 2 additions and 1 deletions
3
Makefile
3
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:
|
||||
|
|
Loading…
Reference in a new issue