Il testing di integrazione verifica che molteplici componenti o unità funzionino correttamente insieme — testando le interazioni e i punti di integrazione (come il codice con un database, servizi che si chiamano l'un l'altro, o moduli combinati). Rileva problemi che i test unitari (che isolano le unità) non riescono a catturare.
Cosa verifica il testing di integrazione
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.
