ember-cli-blanket: I can't get the coverage to generate at all.

Here is my blanket-options.js

/* globals blanket, module */

var options = {
  modulePrefix: 'aeonvera',
  filter: '//.*aeonvera/.*/',
  antifilter: '//.*(tests|template).*/',
  loaderExclusions: [],
  enableCoverage: true,
  cliOptions: {
    reporters: ['lcov'],
    autostart: true,
    lcovOptions: {
      outputFile: 'lcov.ae.info',
      excludeMissingFiles: true,

      // provide a function to rename es6 modules to a file path
      renamer: function(moduleName) {
        // return a falsy value to skip given module
        if (moduleName === 'unwanted') { return; }

        var expression = /^APP_NAME/;
        return moduleName.replace(expression, 'app') + '.js';
      }
    }
  }
};
if (typeof exports === 'undefined') {
  blanket.options(options);
} else {
  module.exports = options;
}

and testem

{
  "framework": "qunit",
  "test_page": "tests/index.html?hidepassed&coverage",
  "disable_watching": true,
  "launch_in_ci": [
    "PhantomJS"
  ],
  "launch_in_dev": [
    "PhantomJS",
    "Chrome"
  ]
}

I’ve even tried with

ember test --test-page=‘tests/index.html?coverage’

and

ember test --test_page=‘tests/index.html?coverage’

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 38 (6 by maintainers)

Most upvoted comments

I haven’t seen that before, but you might want to try running with either Chrome or FireFox as the browser, Phantom can be finicky sometimes and we’ve dropped it entirely for our travis builds (we went with FireFox)

You can look at testem.js and .travis.yml in some of our repos for examples https://github.com/ciena-frost/ember-frost-select/blob/master/.travis.yml#L35 the main changes are to launch xvfb as a display and to switch testem to FireFox

From: “L. Preston Sego III” <notifications@github.commailto:notifications@github.com> Reply-To: sglanzer/ember-cli-blanket <reply@reply.github.commailto:reply@reply.github.com> Date: Monday, March 21, 2016 at 8:22 PM To: sglanzer/ember-cli-blanket <ember-cli-blanket@noreply.github.commailto:ember-cli-blanket@noreply.github.com> Cc: Glanzer Steven <sglanzer@ciena.commailto:sglanzer@ciena.com> Subject: Re: [ember-cli-blanket] I can’t get the coverage to generate at all. (#124)

Ok, so now I have an ember-cli-blanket problem: https://travis-ci.org/NullVoxPopuli/aeonvera-ui/builds/117598755

$ codeclimate-test-reporter < lcov.dat /home/travis/.nvm/versions/node/v4.3.1/lib/node_modules/codeclimate-test-reporter/formatter.js:33 throw parseError; ^ Unknown input coverage format

It appears that lcov.dat is empty.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHubhttps://github.com/sglanzer/ember-cli-blanket/issues/124#issuecomment-199555064