diff options
Diffstat (limited to 'Makefile.util.mk')
-rw-r--r-- | Makefile.util.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.util.mk b/Makefile.util.mk index 5a196fe4..7287d260 100644 --- a/Makefile.util.mk +++ b/Makefile.util.mk @@ -1,4 +1,4 @@ -.PHONY: lint format test race acceptance bench cover deps-check mocks-check deps-download changelog zip +.PHONY: lint format test unit-test race acceptance bench cover deps-check mocks-check deps-download changelog zip OUT_FORMAT ?= colored-line-number LINT_FLAGS ?= $(if $V,-v) @@ -14,9 +14,11 @@ format: $Q go run github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_VERSION) run ./... --fix --out-format $(OUT_FORMAT) $(LINT_FLAGS) | tee ${REPORT_FILE} test: gitlab-pages - rm -f tests.out go run gotest.tools/gotestsum@$(GOTESTSUM_VERSION) --junitfile junit-test-report.xml --format testname -- ./... ${ARGS} +unit-test: + go run gotest.tools/gotestsum@$(GOTESTSUM_VERSION) --junitfile junit-test-report.xml --format testname -- -short ./... ${ARGS} + race: gitlab-pages go run gotest.tools/gotestsum@$(GOTESTSUM_VERSION) --junitfile junit-test-report.xml --format testname -- -race $(if $V,-v) ./... ${ARGS} |