From 0f1293ca9590422e42954f1999b61df464b37534 Mon Sep 17 00:00:00 2001 From: Volodymyr Zotov Date: Fri, 5 Sep 2025 11:20:08 -0500 Subject: [PATCH] Update testing doc to merge integration and unit tests under single command --- docs/testing.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/testing.md b/docs/testing.md index e4fec11..9b7f0a1 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -1,17 +1,11 @@ # Testing -## Unit tests -**When**: Pure Go logic, no Kubernetes apiserver or network. +## Unit/integration tests +**When**: Pure Go logic. Controller/reconciler behavior against a mocked kubernetes cluster. **Where**: `internal/...`, `pkg/...` **Add files in**: `*_test.go` next to the code. **Run**: `make test` -## Integration tests (envtest) -**When**: Controller/reconciler behavior against a mocked kubernetes cluster. -**Where**: `internal/controller/...` -**Framework**: controller-runtime’s `envtest`. -**Run**: `make test` - ## E2E tests (kind) **When**: Full cluster behavior (CRDs, operator image, Connect/SA flows). **Where**: `test/e2e/...`