mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:37:30 +00:00
chore: always run tests for coverage
This commit is contained in:
8
Makefile
8
Makefile
@@ -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:
|
||||||
|
Reference in New Issue
Block a user