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

Chapter 10. Testing Your Application

Testing is an important activity conducted on any software project. Tests automate bug checks and ensure that new features not only work as expected but also don't introduce undesired behavior. Ambitious Ember.js projects, therefore, need to be well tested in order to guarantee their stability and ensure satisfying user experiences. Therefore, by the end of this chapter, we should be able to:

  • Test object-computed properties
  • Test object observers
  • Test controllers
  • Test views
  • Test components
  • Test user journeys

Writing tests

Ember.js supports writing the following two common types of tests:

  • Unit
  • Integration

Unit tests test a specific attribute of a class (or instance) defined in an application. For example, think of scenarios ...

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