views:

821

answers:

1

We are using JQuery and some bit of Javascript in our project. We are thinking of writing some unit test around it for which there are different ways like JSUnit, Qunit, XUnit

Can anyone suggest which is the best way to unit test javascript/jquery and if possible with some good link?

+3  A: 

I would suggest QUnit. jQuery itself uses it for internal unit testing.

See here

Chad Myers has a good intro post into using qUnit.

redsquare