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
Hi,
I'm using ember-cli for my project. There we got some tests. For testing the existens of models we use for example:
import{test,moduleForModel}from'ember-qunit';moduleForModel('user','User',{// Specify the other units that are required for this test.needs: ['model:session','model:otherOne','model:billing']});test('it exists',function(){varmodel=this.subject();// var store = this.store();ok(model);});
then it runs all tests but stops at the last test and doesn't show the stats.
when I change the needs line to:
not ok 98 PhantomJS 1.9 - User: it exists
---
actual: >
null
message: >
Died on test #1 at http://localhost:7357/assets/test-support.js:418
at test (http://localhost:7357/assets/test-support.js:284)
at :18
at http://localhost:7357/assets/vendor.js:77
at http://localhost:7357/assets/test-loader.js:14: No model was found for 'billing'
Log: >
...
And it also prints the stats correctly like this:
1..101
# tests 101
# pass 100
# fail 1
What am I doing wrong?
Seems to me that the helper doesn't get killed correctly.
btw: in the browser everything works great.
The internal blueprints were updated in ember-cli/ember-cli#1996 to avoid generating tests that hang like this. You might be able to use the same technique.
Hi,
I'm using ember-cli for my project. There we got some tests. For testing the existens of models we use for example:
then it runs all tests but stops at the last test and doesn't show the stats.
when I change the needs line to:
then naturally the test fails. with this output
And it also prints the stats correctly like this:
What am I doing wrong?
Seems to me that the helper doesn't get killed correctly.
btw: in the browser everything works great.
I come from qunitjs/qunit#683
The text was updated successfully, but these errors were encountered: