Advanced Unit Testing Techniques in JavaScript

Introduction to some of the more advanced techniques available

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.

Lubov Cholakova

Lubov CholakovaLubov has been with DMXzone for 8 years now, contributing to the Content and Sales departments. She is bringing high quality content in the form of daily blog updates, reviews, tutorials, news, newsletters,update emails and extensions' manuals. If you have a product that needs publicity or any other questions about the entire DMXzone community, she is the one you can contact.

See All Postings From Lubov Cholakova >>

Comments

Be the first to write a comment

You must me logged in to write a comment.