title: Ember: how to get coverage on the actual code, not the transpiled code
body: <p>I'm trying to set up CI on existing projects, some use CoffeeScript, some use ES6 syntax. But I can't find a way to get a proper code coverage on the actual code. All I have is the coverage on the transpiled code and it seems I can't even post that to CodeClimate.</p>
  
  <p>I tried:</p>
  
  <ul>
  <li><a href="https://www.npmjs.com/package/ember-cli-blanket" rel="nofollow noreferrer">ember-cli-blanket</a>: found on stackoverflow <a href="https://stackoverflow.com/questions/24494839/ember-cli-code-coverage-reports">here</a>. It gives result on the transpiled sources only:
  
  <blockquote>
    <p>In fact, there is current no direct mapping between the es6 module names in the lcov output and the original input files.</p>
  </blockquote></li>
  <li><a href="https://github.com/kategengler/ember-cli-code-coverage" rel="nofollow noreferrer">ember-cli-code-coverage</a>: simpler but still run on the transpiled sources</li>
  <li><a href="https://karma-runner.github.io/0.13/plus/emberjs.html" rel="nofollow noreferrer">karma</a>: (the link goes to a tutorial for Ember &amp; karma) here PhantomJS complaints about ES6 syntax "import" (which is normal).
  
  <ul>
  <li>I tried to use a pre-processor to transpile the code.</li>
  <li>There are a lot of possible things to do with browserify, webpack, etc... but I didn't figure out how to set up anything correctly.</li>
  <li>I found <a href="https://gist.github.com/yesley/130962ae57ee5bc0f680" rel="nofollow noreferrer">this gist</a> that could be interesting because it combines karma, browserify, babelify, Istanbul and PhantomJS, only qunit is missing. But I didn't succeeded to make anything work.</li>
  </ul></li>
  </ul>