Skip to content

Commit

Permalink
[add] Coverage to karma
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker committed Mar 16, 2015
1 parent faabae5 commit 988599f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,29 @@ module.exports = function(config) {
'tests.webpack.js': [ 'webpack', 'sourcemap' ]
},

reporters: [ 'nyan' ],
reporters: [ 'nyan', 'coverage' ],

coverageReporter: {
reporters: [
{ type: 'html', subdir: 'report-html' },
{ type: 'lcov', subdir: 'report-lcov' }
]
},

webpack: {
devtool : 'inline-source-map',
plugins : webpack_config.plugins,
resolve : webpack_config.resolve,

module: {
loaders: webpack_config.module.loaders
loaders: webpack_config.module.loaders,
postLoaders: [
{
test: /\.jsx*$/,
exclude: /(__tests__|node_modules)\//,
loader: 'istanbul-instrumenter'
}
]
}
},

Expand Down

0 comments on commit 988599f

Please sign in to comment.