A UI test drive is problematic because you often donβt know what you want on the screen until you see it on the screen. For this reason, GUI design tends to be massively iterative and therefore very difficult to test using tests.
This does not mean that we simply abandon TDD for graphical interfaces. Rather, we push as much code as possible from the GUI, leaving only a simple wire code. This posting allows us to make the massive iterative changes that we need without affecting the essence of the problem.
, , " Humble" . Model-View-Presenter, ; . , , .
, , . , . , , , , - . , , .
Supervising Controller, , , . , , , - , . , , . , - . , View , , , .
, . . . . , , -.
-, - . , , View , .
, . , , , . , .