0.2.4 • Published 12 years ago
karma-sauce-launcher-shahata v0.2.4
karma-sauce-launcher
Use any browser on SauceLabs!
Installation
The easiest way is to keep karma-sauce-launcher as a devDependency in your package.json.
{
"devDependencies": {
"karma": "~0.10",
"karma-sauce-launcher": "~0.1"
}
}You can also add it by this command:
npm install karma-sauce-launcher --save-devConfiguration
// karma.conf.js
module.exports = function(config) {
config.set({
// global config for SauceLabs
sauceLabs: {
username: 'jamesbond',
accessKey: '007',
startConnect: false,
testName: 'my unit tests'
},
// define SL browsers
customLaunchers: {
sl_chrome_linux: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'linux'
}
},
browsers: ['sl_chrome_linux']
});
};Global options
usernameyour SL username, you can also useSAUCE_USERNAMEenv variable.accessKeyyour SL access key, you can also useSAUCE_ACCESS_KEYenv variable.tunnelIdentifierSauce Connect can proxy multiple sessions, this is an id of a session.startConnectdo you wanna start Sauce Connect ? (defaults totrue)tagsan array of tags (will show up in SL web interface)testNametest name (will show up in SL web interface)buildbuild id (will show up in SL web interface)recordVideodo you wanna record video of the session ? (defaults tofalse)recordScreenshotsdo you wanna take screenshots ? (defaults totrue)
Per browser options
browserNamename of the browserversionversion of the browser (defaults to the latest available)platformwhich platform ? (defaults to any)deviceOrientationportrait or landscape (mobile testing option only)
For an example project of, check out AngularJS.
For more information on Karma see the homepage.
0.2.4
12 years ago