From c268f0140a86f390657b3bcfc36c6bd9aaa5ba4f Mon Sep 17 00:00:00 2001 From: Levente Polyak <anthraxx@archlinux.org> Date: Sat, 2 Dec 2023 21:21:11 +0100 Subject: [PATCH] feat(coverage): run coverage with multiple jobs in parallel --- Makefile | 2 +- test/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a1d49d3..43aab92 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ test: test-image test-coverage: test-image rm -rf ${PWD}/coverage mkdir -m 777 ${PWD}/coverage - $(DOCKER) run $(RUN_OPTIONS) -v ${PWD}/coverage:/coverage -e COVERAGE_DIR=/coverage $(IMAGE) make test-coverage + $(DOCKER) run $(RUN_OPTIONS) -v ${PWD}/coverage:/coverage -e COVERAGE_DIR=/coverage $(IMAGE) make BATS_ARGS="$(BATS_ARGS)" test-coverage dev-env: test-image $(DOCKER) run $(RUN_OPTIONS) --tty --interactive $(IMAGE) /bin/bash diff --git a/test/Makefile b/test/Makefile index 0a53c6a..f079ce5 100644 --- a/test/Makefile +++ b/test/Makefile @@ -10,6 +10,6 @@ test-coverage: --include-path=$(CURDIR)/../ \ --exclude-path=$(CURDIR)/../test,$(CURDIR)/../cron-jobs/makepkg.conf,$(CURDIR)/../config \ $(COVERAGE_DIR) \ - bats $(CASES) + bats $(BATS_ARGS) $(CASES) .PHONY: test test-coverage -- GitLab