Integration Tests in Test Pyramid

In this section, we’re going to look at the next layer up in the test pyramid: integration testing. We’ll see why it’s important, review helpful tools, and understand the role of integration testing in the overall scheme of things.

Integration tests exist to test that our code will successfully integrate with external systems. Our core application logic is tested by unit tests, which, by design, do not interact with external systems. This means that we need to test behavior with those external systems at some point.

Advantages and limitations of integration tests

Integration tests are the second layer up in the test pyramid. They have advantages and limitations, as summarized in the following table:

Get hands-on with 1200+ tech skills courses.