/
karma.local-conf.js
88 lines (66 loc) · 1.71 KB
/
karma.local-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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
module.exports = function (config) {
var stn = {};
stn.basePath = '';
// https://npmjs.org/browse/keyword/karma-adapter
stn.frameworks = [
'qunit'
];
// plugins to use
stn.plugins = [
'karma-qunit',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-safari-launcher',
'karma-ie-launcher',
'karma-story-reporter',
'karma-coverage'
];
// list of files / patterns to load in the browser
stn.files = [
'./muuri.js',
'./tests/tests.js'
];
// list of files to exclude
stn.exclude = [];
// possible values: 'dots', 'progress', 'story'
// https://npmjs.org/browse/keyword/karma-reporter
stn.reporters = ['dots'];
stn.preprocessors = {
'./muuri.js': ['coverage']
};
stn.coverageReporter = {
type : 'html',
dir : 'coverage/'
};
// web server port
stn.port = 8888;
// enable / disable colors in the output (reporters and logs)
stn.colors = true;
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
stn.logLevel = config.LOG_INFO;
stn.autoWatch = false;
stn.customLaunchers = {
IE11: {
base: 'IE',
'x-ua-compatible': 'IE=EmulateIE11'
},
IE10: {
base: 'IE',
'x-ua-compatible': 'IE=EmulateIE10'
},
IE9: {
base: 'IE',
'x-ua-compatible': 'IE=EmulateIE9'
}
};
stn.browsers = [
'Chrome'
];
stn.captureTimeout = 60000;
stn.browserDisconnectTolerance = 2;
stn.browserDisconnectTimeout = 10000;
stn.browserNoActivityTimeout = 120000;
stn.singleRun = true;
config.set(stn);
};