File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ ENABLE_WEBHOOK?="false"
4646ENABLE_MONITORING? ="false"
4747ENABLE_REMOTE_STORAGE_MOCK ="true"
4848WEBHOOK_PORT? =8080
49+ TESTOPTS? =-cover -race -v
4950
5051# Container
5152IMAGE_ORG? =quay.io/app-sre
@@ -154,7 +155,8 @@ lint:
154155# # Runs code-generators and unittests.
155156test-unit : generate
156157 @echo " running unit tests..."
157- ./mage test:unit
158+ # ./mage test:unit
159+ CGO_ENABLED=1 go test $(TESTOPTS ) ./internal/... ./cmd/... ./pkg/...
158160.PHONY : test-unit
159161
160162# # Runs the Integration testsuite against the current $KUBECONFIG cluster
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ JOB_TYPE=${JOB_TYPE:-"local"}
1414# regularly getting OOM-killed; so do this rather than boost the pod resources
1515# unreasonably.
1616COV_THREAD_COUNT=${COV_THREAD_COUNT:- 4}
17- make -C " ${REPO_ROOT} " go-test TESTOPTS=" -coverprofile=${COVER_PROFILE} .tmp -covermode=atomic -coverpkg=./... -p ${COV_THREAD_COUNT} "
17+ # make -C "${REPO_ROOT}" go-test TESTOPTS="-coverprofile=${COVER_PROFILE}.tmp -covermode=atomic -coverpkg=./... -p ${COV_THREAD_COUNT}"
18+ make test-unit
1819
1920# Remove generated files from coverage profile
2021grep -v " zz_generated" " ${COVER_PROFILE} .tmp" > " ${COVER_PROFILE} "
You can’t perform that action at this time.
0 commit comments