From fe945c8c2995c97c427da8a8f758eedc4f0227cf Mon Sep 17 00:00:00 2001 From: Benji Visser Date: Tue, 19 Sep 2023 17:18:57 -0700 Subject: [PATCH] update unit test Signed-off-by: Benji Visser --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0b4ef7d0..f0a41ad5 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ TITLE := $(BOLD)$(PURPLE) SUCCESS := $(BOLD)$(GREEN) # the quality gate lower threshold for unit test total % coverage (by function statements) -COVERAGE_THRESHOLD := 40 +COVERAGE_THRESHOLD := 34 ## Build variables DISTDIR=./dist @@ -158,7 +158,7 @@ validate-xeol-db-schema: .PHONY: unit unit: $(TEMPDIR) ## Run unit tests (with coverage) $(call title,Running unit tests) - go test -race -coverprofile $(TEMPDIR)/unit-coverage-details.txt $(shell go list ./... | grep -v anchore/grype/test) + go test -race -coverprofile $(TEMPDIR)/unit-coverage-details.txt $(shell go list ./... | grep -v xeol-io/xeol/test) @.github/scripts/coverage.py $(COVERAGE_THRESHOLD) $(TEMPDIR)/unit-coverage-details.txt