From c057514cb749ed1a50714b75a28de40e4a2a0faa Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Fri, 18 Oct 2024 14:23:42 -0700 Subject: [PATCH] Reduce coverage target --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3834be7..e699e33 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ run: $(APP_NAME) test: go test -coverprofile=coverage.out go tool cover -func=coverage.out - @go tool cover -func=coverage.out | awk -v target=80.0% \ + @go tool cover -func=coverage.out | awk -v target=50.0% \ '/^total:/ { print "Total coverage: " $$3 " Minimum coverage: " target; if ($$3+0.0 >= target+0.0) print "ok"; else { print "fail"; exit 1; } }' # Installs pre-commit hooks