sglanzer-deprecated/ember-cli-blanket

Making it work with Ember-Addon

Closed this issue · 4 comments

Does this work with an ember-add-on project? Right now I have everything configured, but it doesn't seem to pick up the coverage.

We use it all the time.

Note the module prefix and filter setup

/*globals blanket, module */

var options = {
  modulePrefix: “module-name",
  filter: "//.*module-name/.*/",
  antifilter: "//.*(tests|template).*/",
  loaderExclusions: [],
  enableCoverage: true,
  cliOptions: {
    reporters: ['json']
  }
};

On Oct 20, 2015, at 7:47 PM, Shrinivas Kangal notifications@github.com wrote:

Does this work with an ember-add-on project? Right now I have everything configured, but it doesn't seem to pick up the coverage.


Reply to this email directly or view it on GitHub #96.

I have set it up and it does show some coverage even though I dont have any tests. Also after adding some tests it doesn't update either.
screen shot 2015-10-20 at 6 08 31 pm

Got it to work in browser but having issues on console ember test

Future versions of Ember CLI will not support v0.10.26. Please update to Node 0.12 or io.js.
version: 1.13.8
Built project successfully. Stored in "/Users/skangal/treevis/tmp/class-tests_dist-KpqDQQye.tmp".
not ok 1 PhantomJS 1.9 - Acceptance | options tab: check if options tab exists
---
actual: >
false
expected: >
true
message: >
TypeError: 'undefined' is not a function (near '...}).bind(this)).attr('class'...')
Log: |
...
not ok 2 PhantomJS 1.9 - TreeVisComponent: it renders in the page
---
actual: >
null
message: >
Died on test #1 at http://localhost:7357/assets/test-support.js:2934
at test (http://localhost:7357/assets/test-support.js:1826)
at http://localhost:7357/assets/dummy.js:1197
at http://localhost:7357/assets/vendor.js:150
at tryFinally (http://localhost:7357/assets/vendor.js:30)
at http://localhost:7357/assets/vendor.js:156
at http://localhost:7357/assets/blanket-loader.js:103
at http://localhost:7357/assets/test-loader.js:29
at http://localhost:7357/assets/test-loader.js:21
at http://localhost:7357/assets/test-loader.js:40
at http://localhost:7357/assets/test-support.js:6656: 'undefined' is not a function (near '...}).bind(this)).attr('class'...')
Log: |
...

I think I figured out the issue.. related to PhantomJS and polyfill