forked from liriliri/eruda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.sauce.js
59 lines (58 loc) · 1.41 KB
/
karma.sauce.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
module.exports = function(config) {
let customLaunchers = {
sl_ios_safari_8: {
base: 'SauceLabs',
browserName: 'iphone',
version: '8.4'
},
sl_ios_safari_9: {
base: 'SauceLabs',
browserName: 'iphone',
version: '9.3'
},
sl_android_4_4: {
base: 'SauceLabs',
browserName: 'android',
version: '4.4'
},
sl_android_5_1: {
base: 'SauceLabs',
browserName: 'android',
version: '5.1'
}
}
config.set({
basePath: '',
frameworks: ['jquery-1.8.3'],
files: [
'eruda.js',
'test/init.js',
'node_modules/jasmine-core/lib/jasmine-core/jasmine.js',
'node_modules/karma-jasmine/lib/boot.js',
'node_modules/karma-jasmine/lib/adapter.js',
'node_modules/jasmine-jquery/lib/jasmine-jquery.js',
'test/util.js',
'test/console.js',
'test/elements.js',
'test/info.js',
'test/network.js',
'test/resources.js',
'test/snippets.js',
'test/sources.js',
'test/settings.js',
'test/eruda.js'
],
plugins: ['karma-jasmine', 'karma-jquery', 'karma-sauce-launcher'],
reporters: ['dots', 'saucelabs'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
sauceLabs: {
testName: 'eruda'
},
captureTimeout: 120000,
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
singleRun: true
})
}