Integration Testing

Learn about the details of integration testing.

What is integration testing?

Integration testing is when we test how different parts of the application communicate. This type of testing is an excellent way to test things we can’t test at the unit level. For example, API testing is a common integration testing method.

For example, let’s say we have a front-end web application that calls an API to get data from a back-end database. An integration test would verify that the communication between the two systems works as expected and might include testing for the following:

  • The correct data is returned from the API call.
  • The API call returns data in the correct format.
  • The API call returns data promptly.

API tests are often done using tools to make HTTP requests and assert the responses. These test tools are used to automate API testing. API tests are usually written by developers or testers familiar with the code.

Here’s an example of an API test for a retail store system that responds with a list of products:

Get hands-on with 1200+ tech skills courses.