Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unit testing Javascript/JQuery with JSUnit vs Qunit vs XUnit [closed]

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?

like image 345
Miral Avatar asked Aug 03 '09 13:08

Miral


1 Answers

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

See here

Chad Myers has a good intro post into using qUnit.

like image 176
redsquare Avatar answered Sep 30 '22 19:09

redsquare