You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
1.9 KiB
89 lines
1.9 KiB
var base = require('./karma.base.config.js')
|
|
|
|
/**
|
|
* Having too many tests running concurrently on saucelabs
|
|
* causes timeouts and errors, so we have to run them in
|
|
* smaller batches.
|
|
*/
|
|
|
|
var batches = [
|
|
// the cool kids
|
|
{
|
|
sl_chrome: {
|
|
base: 'SauceLabs',
|
|
browserName: 'chrome',
|
|
platform: 'Windows 7'
|
|
},
|
|
sl_firefox: {
|
|
base: 'SauceLabs',
|
|
browserName: 'firefox'
|
|
},
|
|
sl_mac_safari: {
|
|
base: 'SauceLabs',
|
|
browserName: 'safari',
|
|
platform: 'OS X 10.10'
|
|
}
|
|
},
|
|
// ie family
|
|
{
|
|
sl_ie_9: {
|
|
base: 'SauceLabs',
|
|
browserName: 'internet explorer',
|
|
platform: 'Windows 7',
|
|
version: '9'
|
|
},
|
|
sl_ie_10: {
|
|
base: 'SauceLabs',
|
|
browserName: 'internet explorer',
|
|
platform: 'Windows 8',
|
|
version: '10'
|
|
},
|
|
sl_ie_11: {
|
|
base: 'SauceLabs',
|
|
browserName: 'internet explorer',
|
|
platform: 'Windows 8.1',
|
|
version: '11'
|
|
},
|
|
sl_edge: {
|
|
base: 'SauceLabs',
|
|
browserName: 'MicrosoftEdge',
|
|
platform: 'Windows 10'
|
|
}
|
|
},
|
|
// mobile
|
|
{
|
|
sl_ios_safari: {
|
|
base: 'SauceLabs',
|
|
browserName: 'iphone',
|
|
platform: 'OS X 10.9',
|
|
version: '7.1'
|
|
},
|
|
sl_android: {
|
|
base: 'SauceLabs',
|
|
browserName: 'android',
|
|
platform: 'Linux',
|
|
version: '4.2'
|
|
}
|
|
}
|
|
]
|
|
|
|
module.exports = function (config) {
|
|
var batch = batches[process.argv[4] || 0]
|
|
|
|
config.set(Object.assign(base, {
|
|
singleRun: true,
|
|
browsers: Object.keys(batch),
|
|
customLaunchers: batch,
|
|
reporters: process.env.CI
|
|
? ['dots', 'saucelabs'] // avoid spamming CI output
|
|
: ['progress', 'saucelabs'],
|
|
sauceLabs: {
|
|
testName: 'Vue.js unit tests',
|
|
recordScreenshots: false,
|
|
build: process.env.CIRCLE_BUILD_NUM || process.env.SAUCE_BUILD_ID || Date.now()
|
|
},
|
|
// mobile emulators are really slow
|
|
captureTimeout: 300000,
|
|
browserNoActivityTimeout: 300000
|
|
}))
|
|
}
|
|
|