forked from js-joda/js-joda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
89 lines (87 loc) · 2.44 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
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
module.exports = function(config) {
const saucelabsLaunchers = {
sl_ie_9: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '9'
},
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 10',
version: 'latest'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Windows 10',
version: 'latest'
},
sl_android_simulator: {
base: 'SauceLabs',
browserName: 'chrome',
device: 'Android Emulator',
platform: 'Android',
version: 'latest'
},
sl_ios_simulator: {
base: 'SauceLabs',
browserName: 'safari',
device: 'iPhone Simulator',
platform: 'iOS',
version: 'latest'
},
// these don't work yet :(
sl_safari: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.11',
version: 'latest'
},
sl_ios: {
base: 'SauceLabs',
browserName: 'safari',
device: 'iPhone 6 Device',
platform: 'iOS',
version: 'latest'
},
};
config.set({
files: [
{pattern: 'test/karmaWebpackTestEntry.js'}
],
frameworks: [
'mocha',
'chai'
],
preprocessors: {
'test/karmaWebpackTestEntry.js': ['webpack']
},
webpack: require('./webpack.config.js'),
webpackMiddleware: {
noInfo: true
},
sauceLabs: {
testName: 'js-joda karma Tests',
recordVideo: false,
recordScreenshots: false,
connectOptions: {
logfile: 'sauce_connect.log'
}
},
customLaunchers: saucelabsLaunchers,
browserDisconnectTimeout: 10000, // default 2000
// browserDisconnectTolerance: 1, // default 0
browserNoActivityTimeout: 4 * 60 * 1000, //default 10000
captureTimeout: 4 * 60 * 1000, //default 60000
reporters: ['progress'],
browsers: ['Chrome', 'Firefox', 'PhantomJS'],
plugins: ['karma-*'],
client: {
mocha: {
timeout : 6000
}
}
});
};