diff --git a/Makefile b/Makefile index 51e042a915882fe6695eaf4143412dd7c02a6894..e8b5cc4287ce83666e1be40213079383ae178cbf 100644 --- a/Makefile +++ b/Makefile @@ -120,7 +120,7 @@ test: EDITOR= test: PAGER= test: export CI_PROJECT_PATH=$(shell git remote get-url origin) test: bin/gotestsum ## Run tests - $(GOTEST) --no-summary=skipped --junitfile ./coverage.xml --format ${TEST_FORMAT} -- -coverprofile=./coverage.txt -covermode=atomic $(filter-out -v,${GOARGS}) $(if ${TEST_PKGS},${TEST_PKGS},./...) + $(GOTEST) --no-summary=skipped --junitfile ./coverage.xml --format ${TEST_FORMAT} -- -coverprofile=./coverage.txt -covermode=atomic -p 4 -parallel 4 $(filter-out -v,${GOARGS}) $(if ${TEST_PKGS},${TEST_PKGS},./...) .PHONY: test-race test-race: TEST_FORMAT ?= short @@ -130,7 +130,7 @@ test-race: EDITOR= test-race: PAGER= test-race: export CI_PROJECT_PATH=$(shell git remote get-url origin) test-race: bin/gotestsum ## Run tests with race detection - $(GOTEST) --no-summary=skipped --junitfile ./coverage.xml --format ${TEST_FORMAT} -- -coverprofile=./coverage.txt -covermode=atomic -race $(filter-out -v,${GOARGS}) $(if ${TEST_PKGS},${TEST_PKGS},./...) + $(GOTEST) --no-summary=skipped --junitfile ./coverage.xml --format ${TEST_FORMAT} -- -coverprofile=./coverage.txt -covermode=atomic -race -p 4 -parallel 4 $(filter-out -v,${GOARGS}) $(if ${TEST_PKGS},${TEST_PKGS},./...) ifdef HASGOCILINT bin/golangci-lint: