This chapter will combine the concepts used in the previous three projects into a final project. It will also introduce the Mocha testing library and look at how to use it alongside Grunt to automate testing prior to distribution, throughout the build process.
The official logo of Mocha is as follows:
Mocha is a testing framework known by many for its feature set, flexibility, and ability to render on both the browser and command line. Its feature set supports testing of asynchronous code, coverage tooling and benchmarking. Using CoffeeScript for our tests, this chapter will utilize Zombie as a headless web client to test the project. Lastly, the Node.js standard assertion library will be used to ensure that the expected functionality occurs throughout our website.