From d08fba752f16451fa4a595b8b213a433dcbec5d2 Mon Sep 17 00:00:00 2001 From: Jay McCure Date: Fri, 22 Aug 2025 12:06:18 +1000 Subject: [PATCH] tests: run tests in parallel --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 51e042a91..e8b5cc428 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: -- GitLab