Integration Testing

Learn about integration testing and how it's different from unit testing.

Overview of integration tests

Integration tests check how several system components work together. For example, integration testing includes launching complex functions that require the operation of multiple simple ones, running pipelines (sequences of transformations), or testing APIs.

Compared to unit tests, integration tests belong to a higher level of testing. In practice, they tend to be slower; they affect several components and require more maintenance work.

Speaking of required tools, one may start with the same base pytest, although integration tests may leverage using additional tools like unittest for mocks, patches, etc. Let’s look at an example of an integration test below:

Get hands-on with 1200+ tech skills courses.