chore: always run tests for coverage

This commit is contained in:
Stefan Benz
2025-07-09 15:02:06 +02:00
parent a96c82fa84
commit 68d8748e5a

View File

@@ -7,8 +7,8 @@ VERSION ?= development-$(now)
COMMIT_SHA ?= $(shell git rev-parse HEAD) COMMIT_SHA ?= $(shell git rev-parse HEAD)
ZITADEL_IMAGE ?= zitadel:local ZITADEL_IMAGE ?= zitadel:local
GOCOVERDIR_INTEGRATION = tmp/coverage/integration GOCOVERDIR_INTEGRATION = "$(shell pwd)/tmp/coverage/integration"
GOCOVERDIR_UNIT = tmp/coverage/unit GOCOVERDIR_UNIT = "$(shell pwd)/tmp/coverage/unit"
ZITADEL_MASTERKEY ?= MasterkeyNeedsToHave32Characters ZITADEL_MASTERKEY ?= MasterkeyNeedsToHave32Characters
export GOCOVERDIR_INTEGRATION GOCOVERDIR_UNIT ZITADEL_MASTERKEY export GOCOVERDIR_INTEGRATION GOCOVERDIR_UNIT ZITADEL_MASTERKEY
@@ -120,8 +120,8 @@ clean:
.PHONY: core_unit_test .PHONY: core_unit_test
core_unit_test: core_unit_test:
mkdir -p $${GOCOVERDIR_UNIT} mkdir -p ${GOCOVERDIR_UNIT}
go test -cover -race -coverprofile=profile.cov -coverpkg=./internal/... ./... -args -test.gocoverdir="${GOCOVERDIR_UNIT}" go test -cover -race -coverprofile=profile.cov -coverpkg=./internal/... ./... -args -test.gocoverdir=${GOCOVERDIR_UNIT}
.PHONY: core_unit_reports .PHONY: core_unit_reports
core_unit_reports: core_unit_reports: