Skip to content

Integration Testing - Testing Module Interactions

Integration tests verify interactions between units.

Examples:

  • repository ↔ database
  • API client ↔ real HTTP server (or test server)
  • service ↔ message queue
  • you want confidence in boundary behavior
  • you’re worried about schema changes
  • you use third-party APIs/libraries
diagram Diagram mermaid
  • Keep them fewer than unit tests
  • Use test databases/containers where possible
  • Make setup/teardown reliable

pch.coffeeTagline

pch.coffeeCta

pch.feedbackHeading

pch.feedbackSubheading