Integration Tests

Integration tests, on the other hand, don’t go through the UI. They start one layer down and test the underlying services. This gives them the advantage of not having to deal with the fragility of the UI, while still retaining some of the ability to check that things are properly hooked up and connected.

images/pyramid/int-tests.png

The only downside to integration tests is that they aren’t very precise. By precise, I mean that while they are great at telling you something is broken, they can’t always tell you exactly where.

So we like integration tests, because they are great at testing connectivity, but we still don’t use them for everything because they ...

Get The Way of the Web Tester now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.