-
Notifications
You must be signed in to change notification settings - Fork 38
/
karma.conf.js
38 lines (35 loc) · 1.24 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
'use strict';
var customLaunchers = {
win10chrome: { base: 'SauceLabs', browserName: 'chrome', platform: 'Windows 10' },
win10firefox: { base: 'SauceLabs', browserName: 'firefox', platform: 'Windows 10' },
win10ie11: { base: 'SauceLabs', browserName: 'internet explorer', platform: 'Windows 10' },
win7ie9: { base: 'SauceLabs', browserName: 'internet explorer', platform: 'Windows 7', version: '9.0' },
androidChrome: { base: 'SauceLabs', browserName: 'android', platform: 'Linux' },
iosSafari: { base: 'SauceLabs', browserName: 'iphone', platform: 'OS X 10.10' },
iosSafari92: { base: 'SauceLabs', browserName: 'iphone', platform: 'OS X 10.10', version: '9.2' }
};
module.exports = function(config) {
config.set({
browsers: [ 'Chrome' ],
singleRun: true,
frameworks: [ 'mocha' ],
files: [
'tmp/browserified_tests.js'
],
reporters: [ 'spec' ],
client: {
captureConsole: true,
timeout: 10000
}
});
if (process.env.USE_CLOUD) {
config.customLaunchers = customLaunchers;
config.browsers = Object.keys(customLaunchers);
config.startConnect = true;
config.connectOptions = {
verbose: false,
verboseDebugging: false
};
config.browserNoActivityTimeout = 30000;
}
};