Skip to content

FAQ

Frequent questions: what counts as a boundary, in-memory vs real, and how many.

What counts as a boundary worth integrating?

Database, queue, HTTP client, file system, external service, in-process framework. If the collaborator talks to something outside the process, it is a boundary.

In-memory or real database?

In-memory for query-logic tests (fast, isolated); real database for migration, transaction and vendor-behaviour tests. Most teams need both.

How many integration tests?

10-20% of the suite. Enough to cover every boundary crossing on the critical path; not so many that CI minutes dominate.

Can I run integration tests in parallel?

Yes, if the databases and queues are isolated per test (container per test, or unique schemas). Shared state is the source of flakiness.