Alex Rivera | Logout

What is the best way to test GWT code

Asked 2009-01-04T16:51:08.747
17

What is the best way to test GWT code?

GWTTestCase in hosted mode is too slow and none of the mocking frameworks work.

Currently we are following MVC as suggested in http://robvanmaris.jteam.nl/2008/03/09/test-driven-development-for-gwt-ui-code/ and using GWTMockUtilities disarm() and restore() to mock widgets. And we havent figured out a way to test View in GWT MVC. Is there a better way to test GWT code?

gwt
Edit
Report

1 Answer

8

As an alernative, you should try gwt-test-utils, which manage to run GWT client code in a standalone JVM and provides some feature to Mock anything you want (component, RPC services, etc..)

answered 2011-03-24T08:46:13.230

Your Answer