mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-09-09 11:32:46 +08:00
Added support for coverage reporting (as requested in https://github.com/newtriks/generator-react-webpack/issues/158)
This commit is contained in:
+8
-4
@@ -3,24 +3,28 @@ var webpackCfg = require('./webpack.config');
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
basePath: '',
|
||||
browsers: ['PhantomJS'],
|
||||
browsers: [ 'PhantomJS' ],
|
||||
files: [
|
||||
'test/loadtests.js'
|
||||
],
|
||||
port: 8080,
|
||||
captureTimeout: 60000,
|
||||
frameworks: ['phantomjs-shim', 'mocha', 'chai'],
|
||||
frameworks: [ 'phantomjs-shim', 'mocha', 'chai' ],
|
||||
client: {
|
||||
mocha: {}
|
||||
},
|
||||
singleRun: true,
|
||||
reporters: ['mocha'],
|
||||
reporters: [ 'mocha', 'coverage' ],
|
||||
preprocessors: {
|
||||
'test/loadtests.js': ['webpack', 'sourcemap']
|
||||
'test/loadtests.js': [ 'webpack', 'sourcemap' ]
|
||||
},
|
||||
webpack: webpackCfg,
|
||||
webpackServer: {
|
||||
noInfo: true
|
||||
},
|
||||
coverageReporter: {
|
||||
type: 'html',
|
||||
dir: 'coverage/'
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user