-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkarma.conf.js
More file actions
54 lines (40 loc) · 1.37 KB
/
Copy pathkarma.conf.js
File metadata and controls
54 lines (40 loc) · 1.37 KB
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
47
48
49
50
51
52
53
54
var karmaConfig = require('./config').karma;
module.exports = function(config) {
'use strict';
config.set( {
basePath : '',
frameworks: ['jasmine'],
plugins: [
'karma-*'
],
files : [
'bower_components/lodash/lodash.js',
'bower_components/underscore.string/dist/underscore.string.js',
'bower_components/angular/angular.js',
'bower_components/angular-mocks/angular-mocks.js',
'source/*.js',
'test/spec/*.js'
],
exclude : [],
preprocessors : {
'source/**/*.js': 'coverage'
},
reporters : karmaConfig.reporters,
coverageReporter : {
reporters:[
{type: 'html', dir: 'temp/coverage/'},
{type: 'json', dir: 'temp/coverage/'},
{type: 'lcov', dir: 'temp/coverage/'},
{type: 'text-summary', dir: 'temp/coverage/'}
]
},
port : karmaConfig.port,
colors : true,
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel : config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch : false,
browsers : karmaConfig.browsers,
captureTimeout : karmaConfig.captureTimeout
});
};