Now that we can write JavaScript tests for our application, how do we execute them? Most developers start out using the browser directly, but because I wanted something I could execute headless from the command line in a CI environment with a rich ecosystem full of plugins, I looked to Karma.
What I liked about Karma is that it only wants to be your test runner. It doesn’t care what JavaScript test framework you use or what client side MVC framework you use. It’s simple to get started with and writing tests that execute against your production Ember.js application is just a few lines of configuration.
* Configure the Test Runner
* Unit Testing the Computed Property
* Add the Karma-Ember-Preprocessor and Configure It
* Integration Testing the Data-Bound Template
* Should I Write Unit or Integration Tests?
* Conclusion
Your new post is loading...