Testing Strategy
The knowledge of both the business logic implementation pattern and the architec‐ tural pattern can be used as a heuristic for choosing a testing strategy for the code‐ base. Take a look at the three testing strategies shown in Figure 10-5.
![]() |
Figure 10-5. Testing strategies
The difference between the testing strategies in the figure is their emphasis on the dif‐ ferent types of tests: unit, integration, and end-to-end. Let’s analyze each strategy and the context in which each pattern should be used.