Skip to content

Ember integration tests no longer work #10

@keithbro

Description

@keithbro

After installing ember-cli-i18next, integration tests stop working. Steps to reproduce.

ember new foo
cd foo
mkdir tests/integration
wget -O tests/integration/index-test.js https://gist.githubusercontent.com/keithbro/043b1c12658e7555daf8/raw/d1a7f6b26bced070ae195d9f67fc65e404b292a2/index-test.js
ember test

At this point the tests pass.

ember install:addon ember-cli-i18next
bower install --save i18next
ember test

Now the tests start running but do not complete. No error message:

ember test
version: 0.1.7
Could not find watchman, falling back to NodeWatcher for file system events
Built project successfully. Stored in "/Users/kbroughton/dev/sandboxes/foo/tmp/class-tests_dist-a0ZMvy8D.tmp".
ok 1 PhantomJS 1.9 - JSHint - .: app.js should pass jshint
ok 2 PhantomJS 1.9 - JSHint - foo/tests/helpers: foo/tests/helpers/resolver.js should pass jshint
ok 3 PhantomJS 1.9 - JSHint - foo/tests/helpers: foo/tests/helpers/start-app.js should pass jshint
ok 4 PhantomJS 1.9 - JSHint - foo/tests/integration: foo/tests/integration/index-test.js should pass jshint
ok 5 PhantomJS 1.9 - JSHint - foo/tests: foo/tests/test-helper.js should pass jshint

Running the tests through the web browser gives a bit more info (http://0.0.0.0:4200/tests)

6. An Integration test: Page contents
Uncaught Error: Assertion Failed: You have turned on testing mode, which disabled the run-loop's autorun. You will need to wrap any code with asynchronous side-effects in an run
Source: http://0.0.0.0:4200/assets/vendor.js:17077

Versions:

DEBUG: Ember      : 1.8.1
DEBUG: Ember Data : 1.0.0-beta.12
DEBUG: Handlebars : 1.3.0
DEBUG: jQuery     : 1.11.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions