0

I have written a custom plugin with jQuery 1.7.2.

I would like to unit test my JavaScript going forward and think this is the perfect start for such. I have looked at different JavaScript unit testing frameworks and I have decided to go with QUnit.

Being new to this I would like some assistance. Firstly with the understanding as to how I might go about unit testing a jquery plugin? And secondly how I may "stub" DOM elements to test the plugin?

4

1 回答 1

0

请尝试 http://qunitjs.com/

这值得一读。

于 2012-07-04T12:45:09.347 回答