Skip to content

Commit

Permalink
[kjobctl] Split test to test-unit and test-integration commands. (kub…
Browse files Browse the repository at this point in the history
  • Loading branch information
mbobrovskyi authored and kannon92 committed Nov 19, 2024
1 parent a59262a commit 21d3a88
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cmd/experimental/kjobctl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,14 @@ vet: ## Run go vet against code.
$(GO_CMD) vet ./...

.PHONY: test
test: verify gotestsum gomod-download vet envtest ginkgo ## Run tests.
# Unit tests
test: verify vet test-unit test-integration ## Run all tests.

.PHONY: test-unit
test-unit: gomod-download gotestsum ## Run unit tests.
$(GOTESTSUM) --junitfile $(ARTIFACTS)/junit-unit.xml -- $(GO_TEST_FLAGS) $(shell $(GO_CMD) list ./... | grep -v '/test/') -coverpkg=./... -coverprofile $(ARTIFACTS)/cover.out
# Integration tests

.PHONY: test-integration
test-integration: gomod-download envtest ginkgo ## Run integration tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" \
KUEUE_BIN=$(PROJECT_DIR)/bin \
ENVTEST_K8S_VERSION=$(ENVTEST_K8S_VERSION) \
Expand Down

0 comments on commit 21d3a88

Please sign in to comment.