I’ve updated my project to Ember 1.10 and CLi to 0.1.15 and my tests suddenly blurped.
Actually, my tests pass, but sometimes second after they pass, they immediately fail due to following reason:
Uncaught Error: Called stop() outside of a test context@ 1 ms
Source:
http://localhost:4200/assets/test-support.js:2601
I also have another problem, every next acceptance test floods console with warnings:
WARNING: Library "Misago" is already registered with Ember.
I’ve looked under the hood and found repeated calls to “App Version” initalizer being culprit. Perhaps new test runner skips certain libs during cleanup?
I’d be happy to take a look at a small demo repo showing the issue. There were a few changes in 0.1.15 (specifically the update to ember-cli-qunit) that made tests starting async, and could be related.
I’m fairly certain this is due to a test that tests behavior that returns synchronously but is in fact still resolving a promise. andThen moves on, but the application code is still at work.
This is first test in my suite, but andThen never gets fired, so my suite stucks forever waiting for this one test to complete:
Maybe Ember-CLI 0.2.0 will solve this, but as it is now I am too tired and frustrated to continue looking for source of issue. Maybe its something about Brocfile?
I know that if I comment out storeConfigInMeta: false, my andThen’s get called, but test runner seizures itself with following error:
Assertion Failed: Unable to add "ember-application" class to rootElement. Make sure you set rootElement to the body or an element in the body.
Somebody please tell me what I am doing wrong. I’ve posted linky to my ember app few posts ealier.