forked from prakhar05/GameOfAmazons
-
Notifications
You must be signed in to change notification settings - Fork 2
/
karma.conf.js
49 lines (37 loc) · 1.01 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
45
46
47
48
49
module.exports = function(config){
'use strict';
config.set({
basePath : './',
files : [
'http://ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular.js',
'http://ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular-mocks.js',
'*.js'
],
reporters: ['progress', 'coverage'],
preprocessors: {
// source files, that you wanna generate coverage for
// do not include tests or libraries
// (these files will be instrumented by Istanbul)
'gameLogic.js': ['coverage']
},
// optionally, configure the reporter
coverageReporter: {
type : 'html',
dir : 'coverage/'
},
autoWatch : true,
logLevel: config.LOG_DEBUG,
frameworks: ['jasmine'],
browsers : ['Chrome'],
plugins : [
'karma-chrome-launcher',
'karma-jasmine',
'karma-coverage',
'karma-junit-reporter'
],
junitReporter : {
outputFile: 'test_out/unit.xml',
suite: 'unit'
}
});
};