Integration testing
Integration testing is very similar to unit testing in a way that in both types of testing we test classes by making their objects invoke their methods. But they are different in how we test classes. In case of unit testing, we don't touch other objects with which our class under test is interacting with. But in integration testing, we want to see how it all works together. We let them interact with each other.
Sometimes, everything is working fine as per the unit test but not at higher-level tests (functional test or acceptance test) where we test it on the basis of requirements by hitting the URL. So, in some cases, higher-level tests are failing and unit tests are passing so to narrow down where the problem is, integration ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access