This is a quick account about unit testing JavaScript code. Recently, I tried to find a good JavaScript unit testing framework. I found different choices but the simplest and easier to use for test driving was QUnit
QUnit is a powerful, easy-to-use, JavaScript test suite. It's used by the jQuery project to test its code and plugins but is capable of testing any generic JavaScript code (and even capable of testing JavaScript code on the server-side).
I didn't practice unit testing on JavaScript code before but intending to test my JavaScript code in future. I have created a sample project to show how to integrate different tools together.
My intended Javascript development stack contains:
1. jQuery
2. QUnit
3. CoffeeScript