javascript unit test frameworks - reasons for using qUint


qUnit javascript unit test framework:
http://qunitjs.com/

Reasons for using qUnit as your javascript unit test framework:

+ easy to learn
+ small, lightweight
+ can run the tests in a browser (this is very important with javascript)
+ is used by jQuery, which must mean it is good quality
+ can test asynchronous code (where the code under test, is using callbacks).  This is also important for javascript testing, for example with code that would use ajax callbacks.

If you want to run your tests in Visual Studio, then you should be able to use Chutzpah (VS2012):

However, with javascript, it is really in the browser that you will be running the tests – in order to debug, and allow for browser idiosyncrasies …

Here is a discussion in StackOverflow, about other javascript unit test frameworks:


Comments