How can I test the GWT test?

Just googling 'TDD' and 'GWT' easily lead to this article , where the author explained how he can test a GWT application without a container. However, I think that his example is not based on tests, since he first has the whole design and then writes the test, not "test-first".

This makes me think: is it possible to have a β€œtest first” development on a user interface such as GWT? Some people said the user interface code is not suitable for TDD. But I think that by adopting the MVC pattern, maybe we can at least test the MC part? (so V is part of the user interface that cannot be developed using a test).

What will be the first failed test, which we will write on the example of an article?

+5
source share
2 answers

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 , .

, . , , , . , .

+14

Swing GWT .

" GUI" GUI. , . , , , .

, , - , .

GWT , . GWT DebugID . , -, . Web Driver - API .

, . : , . , GUI . , , , , .

, "". , , , . , . , , , "", . :

  • : , , ...
  • : , , , ...
  • : .

, ( ).

+3

All Articles