Test and Debug Your App
I’ve been keeping a little secret this whole time. Ember CLI doesn’t just generate your classes for you when you run an ember generate. It generates test harnesses for you as well. In fact, they are complete enough to be runnable (though they don’t offer much in the way of coverage). If you’re among those who have had a hard time in the past with applying good testing practices to your JavaScript client code, your last excuse just fell away.
Test Execution
Let’s start by reviewing the current test results for the tests that Ember CLI has created as we work. Open a command prompt, navigate to the root of the EmberNote project, and run the following:
| $ ember test |
When you run this command, you should see your console ...
Get Deliver Audacious Web Apps with Ember 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.