qunitember-cliblanket.js

blanket.js not working with qunit in Ember-cli


I would like to run blanket.js with qunit in my Ember-Cli app - I would like to avoid adding in grunt for only this purpose

Tried to use npm install --save-dev blanket ( putting it in the node_modules dir ) and then putting the following in my index.html ( from my test dir )

 <script>
  window.CioMobileENV = {{ENV}};
  window.EmberENV = window.CioMobileENV.EmberENV;
  debugger;
</script>
<script src="assets/qunit.js"></script>
<script src="assets/qunit-notifications.js"></script>
<script src="blanket.js"></script>
<script src="assets/vendor.js"></script>
<script src="assets/cio-mobile.js" data-cover></script>
<script src="testem.js"></script>
<script>
  require('cio-mobile/tests/test-helper');
</script>
<script src="assets/test-loader.js"></script>

after running ember server and in the browser going to /tests - the test run but in the console I see that blanket.js is not found

I also tried a similar approach using bower install blanket ( so in the vender dir ) this gave the same result.

I also tried putting in the path explicitly - and still blanket.js is not found

any help would be great!


Solution

  • This tool has recently been released: ember-cli-blanket. Installation is as simple as what the instructions state.

    For what it's worth though, I've tried using this, and i'm not getting accurate coverage reports. It's possible it is user error though.