架構模式
Testing
Guide testing strategy across unit, integration, and E2E test layers. Use when writing tests, choosing test approaches (TDD vs test-after), implementing test doubles (mocks, stubs, spies, fakes), designing test data with builders/factories, managing flaky tests, or setting up CI test pipelines. Triggers: "testing", "unit test", "integration test", "E2E", "end-to-end", "mocking", "test coverage", "test pyramid", "flaky tests", "TDD".