From b987ed3e809920ff3cd6f10a56586968f6cf048c Mon Sep 17 00:00:00 2001 From: Jesse Schmidt Date: Fri, 23 Aug 2024 16:18:03 -0700 Subject: [PATCH] rm test files from coverage --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a95110d..b66a1a5 100644 --- a/Makefile +++ b/Makefile @@ -531,8 +531,9 @@ unit: .PHONY: coverage coverage: test-large - go tool covdata textfmt -i="$(COV_INTEGRATION_DIR),$(COV_UNIT_DIR)" -o=$(COVERAGE_DIR)/total.cov - go tool cover -func=$(COVERAGE_DIR)/total.cov + go tool covdata textfmt -i="$(COV_INTEGRATION_DIR),$(COV_UNIT_DIR)" -o=$(COVERAGE_DIR)/tmp.cov + go tool cover -func=$(COVERAGE_DIR)/tmp.cov + grep -v 'tests/' $(COVERAGE_DIR)/tmp.cov > $(COVERAGE_DIR)/total.cov PHONY: view-coverage view-coverage: $(COVERAGE_DIR)/total.cov