-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkarma.conf.js
More file actions
36 lines (36 loc) · 860 Bytes
/
karma.conf.js
File metadata and controls
36 lines (36 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
var path = require('path');
module.exports = function(config) {
config.set({
frameworks: ['angular', 'jasmine'],
basePath: 'app/js',
colors: true,
files: [
'./specs.webpack.js'
],
browsers: ['PhantomJS'],
reporters: ['progress', 'coverage'],
preprocessors: {
'./specs.webpack.js': ['webpack']
},
webpack: {
module: {
preLoaders: [
// instrument only testing sources with Istanbul
{
test: /\.js$/,
include: path.resolve('app/js/'),
exclude: /(spec)/,
loader: 'istanbul-instrumenter'
}
]
}
},
coverageReporter: {
dir: 'coverage/',
reporters: [
{type: 'text-summary'},
{type: 'html'}
]
}
})
}