SaaS Solution Platform — Testing Strategy Blueprint¶
Layers¶
| Layer | Scope |
|---|---|
| Unit | Domain and application inside each service |
| Contract | ServiceModel serialization; OpenAPI contract tests |
| Integration | Database, messaging, HTTP with Testcontainers or env-specific |
| E2E | Gateway + shell + MFE critical paths (Playwright or equivalent) |
Cross-context tests¶
- Prefer integration tests that mock peer ServiceModel endpoints or use test doubles—no shared production DB.
Blazor¶
- bUnit for components; Playwright for shell + MFE loading and auth flows.
Coverage expectations¶
- Align with ConnectSoft factory defaults (e.g. ≥80% on new code paths where policy exists).
- ServiceModel — Breaking changes must include consumer migration notes.