Code & slides from Unit Testing JavaScript talk
Here are the slides and code from the Unit Testing JavaScript talk. Or if you one of those people you can get it all from the Subversion repository at http://minisudoku.googlecode.com/svn/trunk/.
(UPDATE 2/25/09: these links point to the latest versions of the slides and the code, which now include examples using both JSSpec and QUnit.)
Nice intro to unit testing javascript. Also good to be reminded that you can do OOP in JS too.
Great talk Jon. Stu and Justin at Relevance have taken javascript testing another step and created a custom rake file, enhanced John Resig’s DOM mockup, and integrated with CruiseControl for running JSSpec tests headless:
http://blog.thinkrelevance.com/2008/7/31/fully-headless-jsspec
Cool Stuff!
Here is another example of integrating QUnit into builds using TeamCity and WatiN:
http://www.lostechies.com/blogs/joshuaflanagan/archive/2008/09/18/running-jquery-qunit-tests-under-continuous-integration.aspx?CommentPosted=true#commentmessage