Refs #19
Goal
Update repository guidance so the new testing rules are explicit and reviewable:
- no new mocked APISIX Admin API command tests
- command behavior coverage must go through real APISIX E2E
- unit tests are reserved for pure logic and self-contained helpers
- Ginkgo/Gomega is the target framework for E2E going forward
Scope
- rewrite
docs/testing-strategy.md
- update
AGENTS.md and any contributor guidance that still recommends httpmock for command-layer tests
- document the allowed unit-test boundary and the disallowed mocked-command-test pattern
- document migration policy for existing tests: phased removal, not one-shot deletion
Acceptance Criteria
- repository docs no longer instruct authors to add mocked Admin API tests for
pkg/cmd/**
- docs clearly separate
unit and e2e responsibilities
- docs mention Ginkgo/Gomega as the standard E2E direction
- reviewers can point to a single source of truth for future test PRs
Refs #19
Goal
Update repository guidance so the new testing rules are explicit and reviewable:
Scope
docs/testing-strategy.mdAGENTS.mdand any contributor guidance that still recommendshttpmockfor command-layer testsAcceptance Criteria
pkg/cmd/**unitande2eresponsibilities