Skip to content

Commit

Permalink
Merge pull request #667 from openshift-kni/controllers-unit-tests
Browse files Browse the repository at this point in the history
Makefile: split test-unit
  • Loading branch information
ffromani authored Jul 25, 2023
2 parents c54e7b9 + c25f6b5 commit 7082201
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,13 @@ vet: ## Run go vet against code.
test: manifests generate fmt vet envtest ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -coverprofile cover.out

test-unit: envtest
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./api/... ./controllers/... ./pkg/... ./rte/pkg/... ./internal/...
test-unit: test-unit-pkgs test-controllers

test-unit-pkgs:
go test ./api/... ./pkg/... ./rte/pkg/... ./internal/...

test-controllers: envtest
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./controllers/...

test-e2e: build-e2e-all
ENABLE_SCHED_TESTS=true hack/run-test-e2e.sh
Expand Down

0 comments on commit 7082201

Please sign in to comment.