# Testing-Strategie ## Testpyramide ``` / E2E \ <- Manuell / geplant / Functional \ <- Standalone-Scripts (AI, real calls) / Integration \ <- pytest (DB, Workflows, RBAC) / Unit \ <- pytest (Models, Utils, Logic) ``` ## Gateway: `gateway/tests/` ### Test-Kategorien | Kategorie | Pfad | Beschreibung | Ausfuehrung | |-----------|------|-------------|-------------| | **Unit** | `tests/unit/` | Datamodels, RBAC-Logic, Utils, Workflows | `pytest tests/unit/` | | **Integration** | `tests/integration/` | DB-abhaengig (RBAC, Workflow-Execution) | `pytest tests/integration/` | | **Validation** | `tests/validation/` | Architektur-Validierung | `pytest tests/validation/` | | **Functional** | `tests/functional/` | AI-Modell-Tests, KPI, JSON-Verarbeitung | `python tests/functional/