When using QUnit, we write our tests in the form of CoffeeScript functions that describe our desired functionality. When these tests are run, the QUnit test runner will execute our tests against our application's code and display the test results.
In this recipe, we will demonstrate how to configure QUnit and write a variety of tests to verify that our CoffeeScript code is working as expected.
We will begin by downloading the QUnit package and configuring the test runner.
QUnit can be installed in a variety of ways. We will be using Node's bower package installer to grab the QUnit files we need. ...