Integrationstesting überprüft, dass mehrere Komponenten oder Units korrekt zusammenarbeiten — testet die Interaktionen und Integrationspunkte (wie Code mit einer Datenbank, Services die sich gegenseitig aufrufen, oder kombinierte Module). Es findet Probleme, die Unit Tests (die Units isolieren) übersehen.
Warum es wichtig ist
Integration tests verify COMPONENTS WORKING TOGETHER (not in isolation):
→ code + DATABASE (does the data layer actually work with a real DB?)
→ service A calling service B / an external API
→ multiple modules/units combined; the integration POINTS between them
→ catches issues in how parts INTERACT — which unit tests (isolated) can't catch.
