Test all packages in check-envtest Make targets
There are fewer packages now, and those that don't use the Kubernetes
API are inexpensive to test. Simply things by testing everything all the
time. This also gives a more complete view of coverage without extra
analysis.
@@ -189,17 +189,17 @@ pgo-base-docker: pgo-base-build
#======== Utility =======
.PHONY: check
check:
- PGOROOT=$(PGOROOT) $(GO) test -cover ./...
+ $(GO) test -cover ./...
# - KUBEBUILDER_ATTACH_CONTROL_PLANE_OUTPUT=true
.PHONY: check-envtest
check-envtest: hack/tools/envtest
- KUBEBUILDER_ASSETS="$(CURDIR)/$^/bin" $(GO) test -count=1 -cover -tags=envtest ./internal/controller/... ./internal/pgbackrest/...
+ KUBEBUILDER_ASSETS="$(CURDIR)/$^/bin" $(GO) test -count=1 -cover -tags=envtest ./...
.PHONY: check-envtest-existing
check-envtest-existing:
${PGO_KUBE_CLIENT} apply -k ./config/dev
- USE_EXISTING_CLUSTER=true $(GO) test -count=1 -tags=envtest ./internal/controller/... ./internal/pgbackrest/...
+ USE_EXISTING_CLUSTER=true $(GO) test -count=1 -cover -tags=envtest ./...
${PGO_KUBE_CLIENT} delete -k ./config/dev
