加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
karma.sauce.conf.js 2.06 KB
一键复制 编辑 原始数据 按行查看 历史
iamkun 提交于 2018-05-15 14:41 . build: add umd build name
module.exports = function (config) {
var batches = [
{
sl_chrome_26: {
base: 'SauceLabs',
browserName: 'chrome',
version: '26'
},
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome'
},
sl_firefox_4: {
base: 'SauceLabs',
browserName: 'firefox',
version: '4'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox'
},
sl_mac_safari_8: {
base: 'SauceLabs',
browserName: 'safari',
version: '8',
platform: 'OS X 10.10'
},
sl_mac_safari: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'macOS 10.13'
}
},
{
sl_ie_9: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '9'
},
sl_ie: {
base: 'SauceLabs',
browserName: 'internet explorer'
},
sl_edge_13: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10',
version: '13'
},
sl_edge: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge'
}
},
{
sl_ios_safari_9: {
base: 'SauceLabs',
browserName: 'iphone',
version: '9.3'
},
sl_android_4_4: {
base: 'SauceLabs',
browserName: 'android',
version: '4.4'
}
},
{
sl_ios_safari: {
base: 'SauceLabs',
browserName: 'iphone'
},
sl_android: {
base: 'SauceLabs',
browserName: 'android'
}
}
];
var batch = batches[process.argv[4] || 0]
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'dayjs.min.js',
'test/*spec.js'
],
reporters: ['dots', 'saucelabs'],
port: 9876,
colors: true,
logLevel: config.LOG_DEBUG,
sauceLabs: {
// build: 'Manual',
testName: 'Day.js'
},
captureTimeout: 200000, // try fix ios timeout
customLaunchers: batch,
browsers: Object.keys(batch),
singleRun: true
});
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化