forked from ogumi/client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
46 lines (36 loc) · 838 Bytes
/
karma.conf.js
File metadata and controls
46 lines (36 loc) · 838 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
37
38
39
40
41
42
43
44
45
46
'use strict';
module.exports = function(config) {
var configuration = {
autoWatch : false,
frameworks: ['jasmine'],
ngHtml2JsPreprocessor: {
stripPrefix: 'src/',
moduleName: 'gulpAngular'
},
browsers : ['PhantomJS'],
plugins : [
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-ng-html2js-preprocessor',
'karma-spec-reporter',
'karma-coverage'
],
reporters: ['coverage', 'spec'],
coverageReporter: {
reporters: [{
type: 'text-summary'
}, {
type: 'cobertura',
file: 'coverage.xml'
}, {
type: 'lcov'
}]
},
preprocessors: {
'**/*.coffee': ['coffee'],
'src/**/*.html': ['ng-html2js'],
'.tmp/serve/app/**/*.js': ['coverage']
}
};
config.set(configuration);
};