Josue Barbosa dos Santos wrote:
> Anyone knows if there is something similar to the GWT (Google Web Toolkit)
> development? Is anyone here doing TDD with GWT?
I TDD Ajax using Ruby on Rails using these techniques:
http://www.oreilly.com/catalog/9780596510657/
The goal is all unit tests work with the "mock the server" technique.
No real web server or web browser at test time. Rails makes that
super-easy, and everyone should learn from its system.
After you can mock a server, and return its pages as strings, you
write pages with pure XHTML, and use assert_xpath to query out the
target items. Then you use assert_js to parse the JavaScript hooks
inside them, and that enables TDD for the browser side of the Ajax
calls.
All these techniques should port easily to other platforms. You should
get with the GWT mailing list, and share anything you learn that's
specific to GWT.
--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!