- Why do we write integration tests?
They ensure the single units will work properly once they will be integrated.
- What problems do integration tests solve?
It solves the problems of interaction among the different units, that may work properly on single test, but not interact properly once integrated.
-
What are the differences between top-down and bottom-down approaches?
The top-down approach starts with testing the entire application and then the components. Finally it tests the single units.
The bottom-up approach goes in the opposite direction, starts with testing each individual unit, then each component the integrated application.