Integration Test

Testing boundaries between components, databases, and external APIs

DongDuong2001 e9cd8dc 869 B Updated

File contents

Integration Test Skill

This skill governs testing the seams and connections between various components of the system.

When to use this skill

  • When validating database queries, ORM layers, and transaction logic.
  • When ensuring microservices communicate correctly.
  • When testing against third-party API contracts.

Guidelines

  • Real Infrastructure: Where possible, use real databases (via Docker/Testcontainers) instead of in-memory mocks for accurate behavior replication.
  • Clean State: Ensure the database or state is reset before or after each integration test to prevent cross-test pollution.
  • Contract Testing: Consider Consumer-Driven Contracts (like Pact) when integrating with external services to catch API changes early.

DongDuong2001/pudo-code-system/tree/main/skills/test/integration-test commit e9cd8dc2ac

Frequently asked questions

npx skillmds@latest add dongduong2001/integration-test