No, I really do not know the way how we can create and run unit and functional tests without any headaches. Think of a web application with huge amount of JavaScript magic, DOM manipulation and AJAX calls. My good fellow colleague at Liligo, deadcabbit, hacked a mini test kit sketch together after we discussed this no-go situation.
I tried to find some tools even on Twitter, and on Xtreme Programming website without any satisfying result. Finally I came up with the idea of a modified Selenium test tool for our front end jobs. Selenium has a nice recording feature implemented in XUL for Gecko browsers. The Core module can be attached to even Internet Explorer and Safari.
With some limitations you can test your JavaScript projects with this tool thanks to the JsUnit incorporated. Additionally you can set up test bundles programmatically in several languages, eg. Ruby.
An other tool can be the Sahi Web Automation and Test Tool, or simply Sahi. Here you have a lightweight proxy that hooks up your browser, and a powerful recording tool as well. My first try was not really successful: I don't want a proxy, but need more browsers to test within. So I skipped this one.
My dream is an integrated test tool (kit?) for front end development, my dream is a Rails like test environment. Hope some day we will have something like that.
0 comments:
Post a Comment