# Testing — Ninja Nexus

Teststrategi og kvalitetssikring.

## Testpyramide (planlagt)

| Niveau | Scope | Værktøj |
|--------|-------|---------|
| Unit | Modul-logik, policy engine | xUnit, Jest |
| Integration | API endpoints, database | xUnit + Testcontainers |
| E2E | Login → desktop → app install | Playwright (admin), custom (shell) |
| Security | Auth, MFA, penetration | OWASP ZAP, manual |
| Performance | API load, agent scale | k6, Azure Load Testing |

## Kritiske testscenarier

- Login + MFA end-to-end
- Offline → online sync
- Policy apply + compliance report
- App install + rollback
- Remote support session + audit
- Multi-tenant isolation (Fase 8)

*Testplaner oprettes per fase i roadmap.*
