WHAT'S IN THIS CHAPTER?
The point of unit tests in TDD is to drive the development of discrete components and sections of an application. To that end, it's important to keep the unit tests and the code they exercise isolated from other components or external resources. In fact, tests that test the same unit of functionality should be isolated from each other. This means that these tests can be run in any order or combination and produce the same predictable results. This is necessary to ensure that the application's individual components are being developed in a simple, loosely coupled, and complete manner. The isolation of unit tests also makes it easier to diagnose and correct defects that cause tests to fail.
There comes a time, however, when an application's components must be combined. Ensuring that these various parts come together correctly is the job of integration tests. Integration tests verify that the various components ...
No credit card required