From 292c6f0e9328b506a77192f7a057ecba45a13c6c Mon Sep 17 00:00:00 2001 From: Volodymyr Zotov Date: Fri, 5 Sep 2025 11:24:02 -0500 Subject: [PATCH] Update testing doc to mention integration and unit tests under single command --- docs/testing.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/testing.md b/docs/testing.md index 9b7f0a1..9380407 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -1,14 +1,15 @@ # Testing -## 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. +## Unit & Integration tests +**When**: Unit (pure Go) and integration (controller-runtime envtest). +**Where**: `internal/...`, `pkg/...` +**Add files in**: `*_test.go` next to the code. **Run**: `make test` ## E2E tests (kind) -**When**: Full cluster behavior (CRDs, operator image, Connect/SA flows). -**Where**: `test/e2e/...` +**When**: Full cluster behavior (CRDs, operator image, Connect/SA flows). +**Where**: `test/e2e/...` +**Add files in**: `*_test.go` next to the code. **Framework**: Ginkgo + `pkg/testhelper`. **Local prep**: @@ -18,4 +19,4 @@ 4. `make test-e2e` 5. Put `1password-credentials.json` into project root. -**Run**: `make test-e2e` \ No newline at end of file +**Run**: `make test-e2e`