0
kicks
Getting Started With jQuery QUnit for Client-Side Javascript Testing
Your First QUnit Test
To start testing, you’ll need to start by creating an HTML page (MyFooTests.htm, for example). This page will need to reference the jquery core JS file, testrunner.js, testsuite.css, as well as the JS file containing the code you’re going to be testing. Lastly, the page will need some special HTML at the bottom with well-known ID’s so that QUnit can display its output. When you’re done, you should have a rough skeleton like this: