From da3402de8566e6c1d7cde00de74cd11e3481cce8 Mon Sep 17 00:00:00 2001 From: Hubertbits <170125456+hubertbits@users.noreply.github.com> Date: Fri, 11 Apr 2025 23:01:40 +0200 Subject: [PATCH] Makefile: Allow test building separate from test target Signed-off-by: yxxhero --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5e009ca0..49e9c8aa 100644 --- a/Makefile +++ b/Makefile @@ -43,9 +43,12 @@ build-test-tools: curl --progress-bar --location https://github.com/homeport/dyff/releases/download/v1.5.6/dyff_1.5.6_linux_amd64.tar.gz | tar -xzf - -C `pwd` dyff .PHONY: build-test-tools -test: +test-build: @which helm &> /dev/null || (echo "helm binary not found. Please see: https://helm.sh/docs/intro/install/" && exit 1) go build -o helmfile . +.PHONY: test-build + +test: test-build go test -v ${PKGS} -coverprofile cover.out -race -p=1 go tool cover -func cover.out .PHONY: test