Enables use of ember integration test helpers for the Jasmine test suite by adding a new Ember.js Test.Adapter described at the bottom of the Ember.js Testing Guide for the Jasmine testing framework.
Uses principles of testing Jasmine asynchronous specs as described here
In your equivalent Jasmine spec_helper.js, you need to set the Ember test adapter to the Jasmine adapter:
Ember.Test.adapter = Ember.Test.JasmineAdapter.create();
In a Jasmine test runner debug console, Ember.test.adapter
should be an instance of the JasmineAdapter, not the default QUnit Test Adapter.
Currently pointing at the latest Ember.js release channel (http://emberjs.com/builds/#/release) for tests and beta for Ember data:
// Handlebars
http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js
// Ember
http://builds.emberjs.com/release/ember.js
// Ember Data
http://builds.emberjs.com/beta/ember-data.js
Currently supports Jasmine 1.3
-
Added underscore.js to implement equivalent toBeDeepEqual matcher that is in QUnit. Really should just implement a stand alone deepEqual function
-
Add Travis CI build
-
Add support for Jasmine 2.0
Need to add a headless test suite. For the time being just open the spec/index.html file in a browser.
- Fork it ( https://github.com/spra85/jasmine-ember-testing/fork )
- Create your feature branch (
git checkout -b new-feature
) - Commit your changes (
git commit -am 'Fixed X'
) - Push to the branch (
git push origin new-feature
) - Create new Pull Request