Skip to content

Instantly share code, notes, and snippets.

@dtothefp
Last active December 2, 2015 18:30
Show Gist options
  • Save dtothefp/cfe51fd4392b61c902ed to your computer and use it in GitHub Desktop.
Save dtothefp/cfe51fd4392b61c902ed to your computer and use it in GitHub Desktop.
//specific values for desktop and mobile
export default {
desktop: [ 'chrome', 'ie', 'safari'],
mobile: [ 'iphone', 'android' ]
};
//run all default desktop browsers
export default {
desktop: true
};
//run specific desktop browsers
//this is tricky because "ie" must run through the BrowserStack Tunnel
export default {
desktop: ['chrome', 'ie']
};
//run all default mobile devices
export default {
mobile: true
};
//specify mobile device
export default {
mobile: ['iphone']
};
//more complicated config could require spawning multiple child process
//and complex merging of data
export default {
desktop: [{
browser: 'firefox',
browser_version: '21.0',
os: 'OS X',
os_version: 'Mountain Lion'
}, 'chrome'],
mobile: [{
device: 'iPhone 6',
os: 'ios',
os_version: '8.3'
}, 'android']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment