Skip to content

Commit bf07b0b

Browse files
committed
Exclude test helpers from codecov
1 parent e5a4d8d commit bf07b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ test: ## Run unit tests
5656
.PHONY: test-coverage-and-junit
5757
test-coverage-and-junit: ## Run unit tests with coverage and junit output
5858
go install github.com/jstemmer/go-junit-report/v2@v2.1.0
59-
$(GOTEST) -v -cover -race -coverprofile=$(COVERAGE_OUT) ./... -json 2>&1 | go-junit-report -parser gojson > $(JUNIT_OUT)
59+
$(GOTEST) -v -cover -race -coverprofile=$(COVERAGE_OUT) ./... -json 2>&1 | grep -v -E 'internal\/toolsets\/mock|internal\/testutil' | go-junit-report -set-exit-code -parser gojson > $(JUNIT_OUT)
6060

6161
.PHONY: coverage-html
6262
coverage-html: test ## Generate and open HTML coverage report

0 commit comments

Comments
 (0)