Sunday, May 11, 2008

Rhinounit - for Javascript testing

I've just opensourced my javascript testing framework, the one that I have been using at my current job to make sure that the code we produce is fully tested and to a minimum standard of quality.

Check it out here

http://code.google.com/p/rhinounit/

It is, of course, similar to jUnit and the other nUnits, but tries to take advantage of the features of javascript. It also tries to make sure that you don't do naughty things with your namespacing and so forth.

I have yet to update the Wiki to really describe how best to use the framework, but will be doing so in the coming days, especially the top level stuff like; how to effectively set up your code so you can test it (clue : MVC), and how to do integration tests even though it's really a unit testing framework.

Happy testing!