Setting Up a Test Infrastructure
Designing an application and test repository structure
Setting up and writing our first tests
Running and assessing test results
Creating a Backbone.js Application Test Plan
Selecting a Backbone.js application to test
Testing concepts, approaches, and planning
Testing individual Backbone.js components
Testing application interactions and events
Dipping our toes in the application testing waters
Test Assertions, Specs, and Suites
Choosing a test style that fits
Trying out some different styles
A tour of the Chai assertion library
Getting the application and tests ready to run
Writing Mocha test specifications
Testing and supporting Backbone.js views
Aggregating and running the application tests
Test development tips, tricks, and hints
Spicing up Chai with the Sinon.JS plugin
Testing Backbone.js components with spies
Replacing method behaviors with Sinon.JS stubs
Faking and verifying behavior with Sinon.JS mocks
Testing Backbone.js components with stubs and mocks
Finding the rest of the Notes application components
A few more Sinon.JS test helpers
The world of testing beyond humans and browsers
Automating browser environments
Headless testing with PhantomJS