December 2010
Beginner to intermediate
368 pages
7h 19m
English
“To each his own. (Suum Cuique)”
Cicero
Tests can be made more maintainable by separating what appears to the user from the logic in the underlying business model.
For the CD Reservation story in the previous chapter, the business rule (the model) for determining whether a customer is allowed to reserve CDs was documented, and tests were written for it. This reservation tests go to some module inside the system, as shown in Figure 14.1. The triad did not talk about how the reservation-allowed condition is displayed (the view), and they did not make up tests for the user interface.
Figure 14.1. User Interface and Logic Tests
There are at least three ways that the application ...
Read now
Unlock full access