Recently I’ve built Ember technology demonstrator, to learn the framework and it’s ecosystem: MVC pattern, data binding, performance, tests and automation.
Ember documentation contains section for Integration Tests. My first intention was to use Jasmine as my test framework of choice. Unfortunately, after hours of digging, I’ve found that there is no good way to test Ember code with Jasmine. The only official way to test Ember apps is an Ember-QUnit, which includes adapter for async operations and helper functions for unit and integration tests.
Long story short, here is GitHub Repository that demonstrates Ember app with integration tests, which can be executed both in terminal and in browser. It uses grunt to automate tasks, and testem to run the tests. Feel free to use it as a starting point for your Ember unit tests.
Your new post is loading...