Reputation:
How i can use FuncUnit or qunit to test my jQuery code.Can anyone exaplain how i can use one of them to test the jQuery code i write ?
Upvotes: 1
Views: 294
Reputation: 133
Funcunit is better for acceptance tests. It simulates user actions (mouse clicking, typing on a keyboard). Funcunit is an extension of QUnit.
If you realy need to test only your JavaScript code, in this case you can use e.g. Jasmine. It is faster then QUnit, because it doesn't manipulate with the DOM. jQuery code is tested well, so you need not to duplicate this work by using of QUnit.
Upvotes: 1