Testing direction
Now that you have a basic plan for your architecture you have to think about where you should begin your testing. There are a few options for where to start:
- You could choose to start testing at the data access or data source layers and work your way up to the user interface layers. This method is a back-to-front approach to testing.
- You could start at the user interface layers and work your way to the data access layers. Approaching the tests in this manner is a front-to-back method of testing.
- Lastly, you could start testing in the business layers and work your way out to the hexagonal boundaries of the system. This method is an inside-out testing approach.
As a demonstration of the three testing directions to be examined, the same scenario of user login will be used.
Back-to-front
Most back-end developers have been taught to think in a database-first manner. This style of thinking will lead them to find that a back-to-front style of testing makes more sense. As mentioned previously...