1

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 ?

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.