By now, everyone knows about Test-Driven Development and unit testing. But are you using the testing frameworks to their fullest?
In this tutorial, I’ll introduce you to some of the more advanced techniques available to you.
As this tutorial will cover some advanced topics, I assume you’ve already created unit tests before and are familiar with the basics and its terminology. If not, here’s an excellent article to you get started: TDD Terminology Simplified.
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.
Your new post is loading...