Setup This post assumes you are already writing unit tests for your JavaScript code. If not, check out Chad's post on Getting Started with jQuery QUnit . We use jQuery and QUnit at work, so my code examples are geared toward those frameworks. However...