From the course: JavaScript: Test-Driven Development (ES6)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The two categories of integration tests

The two categories of integration tests - JavaScript Tutorial

From the course: JavaScript: Test-Driven Development (ES6)

Start my 1-month free trial

The two categories of integration tests

- [Instructor] So you've probably noticed that there's a pretty wide range of situations that can be covered by integration tests. Unlike with unit tests, which ideally, we only write to test the outputs of pure functions, functions without state or side effects. Integration tests are usually tasked with testing the functionality of our app on a larger scale. So for example, they might test that our server sends back the appropriate response when queried, or that clicking a button on a page produces the desired result. And this sort of thing is generally more complicated to test than just calling a function and checking its output. And with that being said, conceptually, I like to divide integration tests into two basic categories. And these two categories are single-service integration tests and boundary integration tests. Single-service integration tests are meant to test the internal logic and functioning of one…

Contents