Skip to content

Commit 864a37a

Browse files
authored
coverage-fix (#3239)
1 parent fc761ce commit 864a37a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,16 +297,20 @@ test-integration: ## Run integration tests using an available cluster.
297297
.PHONY: test-e2e
298298
test-e2e: func-instrumented-bin ## Basic E2E tests (includes core, metadata and remote tests)
299299
# Runtime and other options can be configured using the FUNC_E2E_* environment variables. see e2e_test.go
300-
go test -cover -coverprofile=coverage.txt -tags e2e -timeout 60m ./e2e -v -run "TestCore_|TestMetadata_|TestRemote_"
300+
go test -tags e2e -timeout 60m ./e2e -v -run "TestCore_|TestMetadata_|TestRemote_"
301+
go tool covdata textfmt -i=$${FUNC_E2E_GOCOVERDIR:-.coverage} -o coverage.txt
302+
301303

302304
.PHONY: test-e2e-podman
303305
test-e2e-podman: func-instrumented-bin ## Run E2E Podman-specific tests
304306
# see e2e_test.go for available options
305-
FUNC_E2E_PODMAN=true go test -cover -coverprofile=coverage.txt -tags e2e -timeout 60m ./e2e -v -run TestPodman_
307+
FUNC_E2E_PODMAN=true go test -tags e2e -timeout 60m ./e2e -v -run TestPodman_
308+
go tool covdata textfmt -i=$${FUNC_E2E_GOCOVERDIR:-.coverage} -o coverage.txt
306309

307310
test-e2e-matrix: func-instrumented-bin ## Basic E2E tests (includes core, metadata and remote tests)
308311
# Runtime and other options can be configured using the FUNC_E2E_* environment variables. see e2e_test.go
309-
FUNC_E2E_MATRIX=true go test -cover -coverprofile=coverage.txt -tags e2e -timeout 120m ./e2e -v -run TestMatrix_
312+
FUNC_E2E_MATRIX=true go test -tags e2e -timeout 120m ./e2e -v -run TestMatrix_
313+
go tool covdata textfmt -i=$${FUNC_E2E_GOCOVERDIR:-.coverage} -o coverage.txt
310314

311315

312316
.PHONY: test-full

0 commit comments

Comments
 (0)