Testarea de integrare verifică că mai multe componente sau unități funcționează corect împreună — testând interacțiunile și punctele de integrare (cum ar fi codul cu o bază de date, servicii care se apelează reciproc, sau module combinate). Captează problemele pe care testele unitare (care izolează unitățile) le omit.
Ce verifică testarea de integrare
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.
