-
Notifications
You must be signed in to change notification settings - Fork 70
/
karma.conf.js
44 lines (34 loc) · 1.14 KB
/
karma.conf.js
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
module.exports = function(config) {
config.set({
basePath : './',
files : [
'lib/angular.js',
'lib/turnBasedServices.4.js',
'ts_output_readonly_do_NOT_change_manually/src/gameLogic.js',
'ts_output_readonly_do_NOT_change_manually/src/aiService.js',
'ts_output_readonly_do_NOT_change_manually/src/gameLogic_test.js',
'ts_output_readonly_do_NOT_change_manually/src/aiService_test.js'
],
reporters: ['progress', 'coverage'],
preprocessors: {
// Source files, that you wanna generate coverage for.
// (these files will be instrumented by Istanbul)
// Do not include tests or libraries.
'ts_output_readonly_do_NOT_change_manually/src/gameLogic.js': ['coverage'],
'ts_output_readonly_do_NOT_change_manually/src/aiService.js': ['coverage']
},
// optionally, configure the reporter
coverageReporter: {
type : 'html',
dir : 'coverage/'
},
autoWatch : true,
frameworks: ['jasmine'],
browsers : ['Chrome'],
plugins : [
'karma-chrome-launcher',
'karma-jasmine',
'karma-coverage'
]
});
};