You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is an acceptance test an initalizers and instance-initializers affects component integration tests. If not they won't. Inconsistent errors depending on test filters is the result. Really confusing...
Let my give an example: I have an initalizer to configure webshim polyfill. I have a component integration test which was affected by webshim. Tests passes running ember test -m "Integration | Component | webshim affected component" while failing on ember test (which also runs some acceptance tests).
Was even more confusing since tests passed in chrome (which has native support for the feature) but failed in phantomjs (which uses polyfill) but ember isn't responsible therefore. 😄
The only possible solution that I see for this is starting a new browser instance for every single test, which is obviously very slow. Integration test should in general not rely on any initializers. You could use ember-exam to randomize the test order and detect issues like that.
If there is an acceptance test an initalizers and instance-initializers affects component integration tests. If not they won't. Inconsistent errors depending on test filters is the result. Really confusing...
Let my give an example: I have an initalizer to configure webshim polyfill. I have a component integration test which was affected by webshim. Tests passes running
ember test -m "Integration | Component | webshim affected component"
while failing onember test
(which also runs some acceptance tests).Was even more confusing since tests passed in chrome (which has native support for the feature) but failed in phantomjs (which uses polyfill) but ember isn't responsible therefore. 😄
ember-cli: 1.13.13
ember-qunit: 0.4.16
Moved from ember-cli/ember-cli#5405 as suggested.
The text was updated successfully, but these errors were encountered: