@shackpank/truman
Version:
Simple test fixtures for single page apps
59 lines (55 loc) • 1.79 kB
JavaScript
'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' },
// Commented the below out for the time being as it's timing out a lot and failing builds randomly:
// 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: [
'test/tests.webpack.js'
],
preprocessors: {
'test/tests.webpack.js': [ 'webpack', 'sourcemap' ]
},
reporters: [ 'spec', 'saucelabs' ],
webpack: {
devtool: 'inline-source-map',
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: [ 'es2015' ]
}
}]
}
},
webpackServer: {
noInfo: true
},
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;
}
};