Integrationstestning verifierar att flera komponenter eller enheter fungerar korrekt tillsammans — testning av interaktioner och integrationspunkter (som kod med en databas, tjänster som anropar varandra, eller kombinerade moduler). Det fångar problem som enhetstester (som isolerar enheter) missar.
Vad integrationstestning verifierar
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.
