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?