Back to the glossary

Test levels and methods

Integration test

An integration test checks whether several components, modules or systems work together correctly, especially at their interfaces.

Also known as: interface test

What is tested?

Where a unit test looks at one unit in isolation, an integration test is about what lies in between: data formats, protocols, timing, error handling and assumptions two teams made independently of each other. That is exactly where many faults arise that no unit test will find.

Typical examples

  • An application writes to a real database and reads the data back correctly.
  • Two microservices communicate through an API.
  • Firmware and driver control a peripheral device together.
  • Several control units exchange messages over a bus.

Strategies

Integration happens step by step (incrementally) or all at once (“big bang”). Incremental is almost always the better choice, because faults can be traced more clearly. Missing parts are replaced with simulations or stubs along the way.