Learning Backbone.js Testing
Publisher: Packt Publishing
Final Release Date: August 2015
Run time: 1 hour 48 minutes

An interactive guide to perform automated testing on Backbone.js applications with the help of a real-world example

Learning Backbone.js Testing will bootstrap you into a world of JavaScript testing and provide you with fundamental experience in writing tests. By understanding and becoming comfortable in testing Backbone.js applications, you can increase your productivity, code quality, and design skills.

At the beginning, we’ll discuss different testing philosophies and go over some testing basics. After establishing a motivation for and philosophy of testing, we’re going to dive right into how we express our tests in Jasmine’s BDD syntax. We’ll also hone in on how to deal with the DOM and AJAX in our tests.

Once you learn some syntax and apply it to plain JavaScript and Backbone.js code, we’re going to run into the problem of manual testing practices. We’ll discuss and incorporate a tool that will automate our tests and make testing considerably more streamlined using Karma. From there, you’ll learn to apply testing techniques and tools such as fixtures and spies. This course will jump-start your automated testing experience and you’ll be writing robust tests for everyday objects!

Who this course is for

If you have a solid understanding of JavaScript, experience writing frontend code using Backbone.js and want to start with testing your app, this course is perfect for you. Having knowledge of the node package management ecosystem will be beneficial, although not compulsory.

What you will learn from this course

  • Understand the philosophy behind test-driven and behavior-driven development
  • Acquire a handful of tools and helpers to facilitate testing JavaScript applications
  • Overcome the obstacle of testing code that relies on AJAX by using sinon.js
  • Eliminate tedious manual testing habits in favor of streamlined automated workflows by using Karma
  • Develop a solid approach to behavior-driven development with Jasmine that will help you write better tests
  • Build and use fixtures to facilitate predictable data instantiation and reuse
  • Customize and extend the testing framework to bring the tools closer to your problem set
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews
 
Buy 2 Get 1 Free Free Shipping Guarantee
Buying Options
Immediate Access - Go Digital what's this?
Video:  $74.99
(Streaming, Downloadable)