In this tutorial, Guido Kessels will introduce you to some of the more advanced techniques available to you. As this tutorial will cover some advanced topics, he assumes you’ve already created unit tests before and are familiar with the basics and its terminology. We’ll be using SinonJS. This is a standalone framework which provides an API for mocks, stubs, spies and more. You can use it with any testing framework of your choosing, but for this tutorial, we’ll be using BusterJS, as it ships with SinonJS built-in.
Up & Running With BusterJS
To install BusterJS just run the following in a terminal: npm install -g buster
Note that you need Node v0.6.3 or newer.BusterJS requires a buster.js configuration file which tells Buster where your sources and tests files are.
Comments
Be the first to write a comment
You must me logged in to write a comment.