Skip to content

Commit

Permalink
Make "make check" an alias for "make unit-test"
Browse files Browse the repository at this point in the history
They do the same thing so we might as well have them share code.
  • Loading branch information
caboteria committed Apr 29, 2024
1 parent 38387bf commit 77d3a82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ vet: ## Run go vet against code.
unit-test: generate fmt vet ## Run unit tests (no external resources needed).
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -short -coverprofile cover.out

check: generate fmt vet ## Run "short" tests only.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -short -coverprofile cover.out
check: unit-test ## Run "short" tests only.

test: generate fmt vet ## Run all tests, even ones that need external resources.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -coverprofile cover.out
Expand Down

0 comments on commit 77d3a82

Please sign in to comment.