Skip to content

Commit e77755e

Browse files
authored
Merge pull request #5199 from camilamacedo86/fix-coveralls
🌱 Fix test-coverage to include only directories where are covered
2 parents 1d1a863 + cd150e1 commit e77755e

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
@@ -155,7 +155,7 @@ test-unit: ## Run the unit tests
155155
.PHONY: test-coverage
156156
test-coverage: ## Run unit tests creating the output to report coverage
157157
- rm -rf *.out # Remove all coverage files if exists
158-
go test -race -failfast -tags=integration -coverprofile=coverage-all.out -coverpkg="./pkg/cli/...,./pkg/config/...,./pkg/internal/...,./pkg/machinery/...,./pkg/model/...,./pkg/plugin/...,./pkg/plugins/..." $(TEST_PKGS)
158+
go test -race -failfast -tags=integration -coverprofile=coverage-all.out -coverpkg="./pkg/cli/...,./pkg/config/...,./pkg/internal/...,./pkg/machinery/...,./pkg/model/...,./pkg/plugin/...,./pkg/plugins/golang/...,./pkg/plugins/external/...,./pkg/plugins/optional/grafana/...,./pkg/plugins/optional/helm/v2alpha/..." $(TEST_PKGS)
159159

160160
.PHONY: test-features
161161
test-features: ## Run the integration tests

0 commit comments

Comments
 (0)