Integration testing ตรวจสอบว่า component หรือ unit หลายตัวทำงานร่วมกันได้อย่างถูกต้อง — ทดสอบปฏิสัมพันธ์และจุดเชื่อมต่อ (integration point) (เช่น โค้ดกับฐานข้อมูล service ที่เรียกหากัน หรือ module ที่รวมกัน) มันจับปัญหาที่ unit test (ซึ่งแยก unit ออกมา) พลาดไป
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.
