mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-24 08:20:45 +00:00
Update testing doc to mention integration and unit tests under single command
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Testing
|
# Testing
|
||||||
|
|
||||||
## Unit/integration tests
|
## Unit & Integration tests
|
||||||
**When**: Pure Go logic. Controller/reconciler behavior against a mocked kubernetes cluster.
|
**When**: Unit (pure Go) and integration (controller-runtime envtest).
|
||||||
**Where**: `internal/...`, `pkg/...`
|
**Where**: `internal/...`, `pkg/...`
|
||||||
**Add files in**: `*_test.go` next to the code.
|
**Add files in**: `*_test.go` next to the code.
|
||||||
**Run**: `make test`
|
**Run**: `make test`
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
## E2E tests (kind)
|
## E2E tests (kind)
|
||||||
**When**: Full cluster behavior (CRDs, operator image, Connect/SA flows).
|
**When**: Full cluster behavior (CRDs, operator image, Connect/SA flows).
|
||||||
**Where**: `test/e2e/...`
|
**Where**: `test/e2e/...`
|
||||||
|
**Add files in**: `*_test.go` next to the code.
|
||||||
**Framework**: Ginkgo + `pkg/testhelper`.
|
**Framework**: Ginkgo + `pkg/testhelper`.
|
||||||
|
|
||||||
**Local prep**:
|
**Local prep**:
|
||||||
|
|||||||
Reference in New Issue
Block a user