Skip to content

Commit 78edd78

Browse files
committed
setting executable and making requested changes
1 parent c51f5d3 commit 78edd78

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ ENABLE_WEBHOOK?="false"
4646
ENABLE_MONITORING?="false"
4747
ENABLE_REMOTE_STORAGE_MOCK="true"
4848
WEBHOOK_PORT?=8080
49+
TESTOPTS?=-cover -race -v
4950

5051
# Container
5152
IMAGE_ORG?=quay.io/app-sre
@@ -154,7 +155,8 @@ lint:
154155
## Runs code-generators and unittests.
155156
test-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

hack/codecov.sh

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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.
1616
COV_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
2021
grep -v "zz_generated" "${COVER_PROFILE}.tmp" > "${COVER_PROFILE}"

0 commit comments

Comments
 (0)