You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
701 B

9 years ago
var base = require('./karma.base.config.js')
module.exports = function (config) {
var options = Object.assign(base, {
browsers: ['PhantomJS'],
reporters: ['mocha', 'coverage'],
9 years ago
coverageReporter: {
reporters: [
{ type: 'lcov', dir: '../coverage', subdir: '.' },
{ type: 'text-summary', dir: '../coverage', subdir: '.' }
]
},
singleRun: true
})
// add babel-plugin-coverage for code intrumentation
options.webpack.babel = {
plugins: [['coverage', {
ignore: [
'test/',
'src/compiler/parser/html-parser.js',
'src/core/instance/proxy.js',
'src/sfc/deindent.js'
]
}]]
}
9 years ago
config.set(options)
}