Integration Tests

In this lesson, we'll learn what integration tests are and see one in practice.

We'll cover the following

What are integration tests?

Integration tests are extremely similar to unit tests. You write integration tests to test that functions work well together. It’s possible to have functions that pass comprehensive sets of unit tests but be part of failing integration tests. They usually involve multiple systems interacting together.

Example

Consider our form and how it might be sent to a server. We can have a function called serialize, which gives a representation that can be stored as a string and a deserialize function, which reads data in that form and populates our field with that data.

Get hands-on with 1200+ tech skills courses.