Skip to content

Commit 679a008

Browse files
authored
[kjobctl] Split test to test-unit and test-integration commands. (#2702)
1 parent ea83599 commit 679a008

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cmd/experimental/kjobctl/Makefile

+7-3
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,14 @@ vet: ## Run go vet against code.
8585
$(GO_CMD) vet ./...
8686

8787
.PHONY: test
88-
test: verify gotestsum gomod-download vet envtest ginkgo ## Run tests.
89-
# Unit tests
88+
test: verify vet test-unit test-integration ## Run all tests.
89+
90+
.PHONY: test-unit
91+
test-unit: gomod-download gotestsum ## Run unit tests.
9092
$(GOTESTSUM) --junitfile $(ARTIFACTS)/junit-unit.xml -- $(GO_TEST_FLAGS) $(shell $(GO_CMD) list ./... | grep -v '/test/') -coverpkg=./... -coverprofile $(ARTIFACTS)/cover.out
91-
# Integration tests
93+
94+
.PHONY: test-integration
95+
test-integration: gomod-download envtest ginkgo ## Run integration tests.
9296
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" \
9397
KUEUE_BIN=$(PROJECT_DIR)/bin \
9498
ENVTEST_K8S_VERSION=$(ENVTEST_K8S_VERSION) \

0 commit comments

Comments
 (0)