O'Reilly logo

Mastering Ember.js by Mitchel Kelonye

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

We just learned the various test techniques you can use to ensure the stability of your application. Since you will mostly be writing integration tests, the best approach would be to break your app into clear user journeys. Then, test any expected interactions as well as transitions. This would obviously be done when developing new features. When testing against external resources, you can use libraries such as Sinon to stub these services or extend the test timeout, shown as follows:

describe('visit /orders', function(){
  this.timeout(5000);
});

In the next chapter, we will learn how to build Ember.js applications that are backed by external real-time data and service resources. We will specifically learn how to use the popular socket.io ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required