Knowledge
Search knowledge... ⌘K
Knowledge · Framework · Capabilities
Testing
Test strategy, test file paths, coverage metrics. Every function can be tested.
Overview
Test strategy, test file paths, coverage metrics. Every function can be tested.
Testing validates that implementation faithfully represents its governing model. In SBX, tests are derived from user stories and test specifications defined during FDD1 — not invented during implementation. The testing protocol defines fixture management, assertion patterns, and coverage requirements across unit, integration, and end-to-end layers.
Layer Guidance
- PD
- Unit: validate_test.go, table-driven, coverage > 95%
- MD
- Integration: create_test.go, testcontainer postgres, coverage > 85%
- SI
- E2E: api_test.go, HTTP test client, coverage > 80%
- UI
- Playwright: document-form.spec.ts, interaction tests
Examples
- End-to-end test suite for SBX Web projects/sbx/apps/sbx/svelte/tests/