Skip to content

Commit ab33560

Browse files
Add new make target for unit tests
1 parent 4289a7b commit ab33560

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ jobs:
2929
run: |
3030
make test-api
3131
make test-internal
32+
make test-unit

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,14 @@ test-internal: fmt vet copywrite ## Run internal/* tests.
148148
./internal/pointer \
149149
./internal/slice
150150

151+
.PHONY: test-unit
152+
test-unit: fmt vet copywrite ## Run internal/controller tests.
153+
go test ./internal/controller/... \
154+
-timeout 5m \
155+
-count 1 \
156+
-v \
157+
-run="^Test(DoNotRequeue|RequeueAfter|RequeueOnErr|FormatOutput|FinalizerBehaviors|MatchWildcardName|ValidateTFEVersion)$$"
158+
151159
.PHONY: test-helm
152160
test-helm: ## Run Helm chart tests.
153161
cd charts/test; go test -timeout 5m -count=1 -v ./...

0 commit comments

Comments
 (0)