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`