Integration testing mengesahkan bahawa beberapa komponen atau unit berfungsi dengan betul bersama — menguji interaksi dan titik integrasi (seperti kod dengan database, perkhidmatan yang memanggil satu sama lain, atau modul yang digabungkan). Ia menangkap isu yang terlepas oleh unit test (yang mengasingkan unit).
Apa yang disahkan oleh integration testing
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.
