Skip to content

Instantly share code, notes, and snippets.

@mrfyda
Created March 30, 2015 19:50
Show Gist options
  • Save mrfyda/820ff5b1c51ef2372a47 to your computer and use it in GitHub Desktop.
Save mrfyda/820ff5b1c51ef2372a47 to your computer and use it in GitHub Desktop.
mocha + karma coverage
var baseConfig = require('./karma.conf.js');
module.exports = function (config) {
// Load base config
baseConfig(config);
// Override base config
config.set({
...
coverageReporter: {
type: 'lcov',
dir: 'reports',
subdir: 'coverage'
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment