forked from loryjs/lory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
saucelabs.karma.conf.js
108 lines (98 loc) · 2.74 KB
/
saucelabs.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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
'use strict';
module.exports = function (config) {
var customLaunchers = {
sauceLabsInternetExplorer10: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '10.0'
},
sauceLabsInternetExplorer11: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '11.0'
},
edge: {
base: 'SauceLabs',
browserName: 'microsoftedge'
},
sauceLabsChrome46: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Linux',
version: '46.0'
},
sauceLabsChrome45: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Linux',
version: '45.0'
},
sauceLabsFirefox41: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Linux',
version: '41.0'
},
sauceLabsFirefox40: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Linux',
version: '40.0'
},
sauceLabsSafari7: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'Mac 10.9',
version: '7.0'
},
sauceLabsSafari8: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'Mac 10.10',
version: '8.0'
}
};
config.set({
sauceLabs: {
testName: 'lory Browser Tests',
connectOptions: {
port: 5757
}
},
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
reporters: ['dots', 'saucelabs'],
frameworks: [
'mocha',
'chai',
'fixture'
],
files: [
'dist/lory.js',
'test/lory.test.js',
'static/app.css',
'http://cdnjs.cloudflare.com/ajax/libs/classlist/2014.01.31/classList.min.js',
{
pattern: 'test/*.html'
}
],
plugins: [
'karma-mocha',
'karma-mocha-reporter',
'karma-chai',
'karma-fixture',
'karma-sauce-launcher',
'karma-html2js-preprocessor'
],
preprocessors: {
'test/*.html': ['html2js']
},
browserDisconnectTimeout: 10000, // default 2000
browserDisconnectTolerance: 1, // default 0
browserNoActivityTimeout: 4 * 60 * 1000, // default 10000
captureTimeout: 4 * 60 * 1000, // default 60000
singleRun: true
});
};