karma-tdm-launcher
v0.1.1
Published
A Karma plugin. Launcher for test-device-manager.
Downloads
2
Maintainers
Readme
karma-tdm-launcher
Run your unit tests on anywhere
Installation
Install karma-tdm-launcher
as a devDependency
in your package.json:
npm install bazilio91/karma-tdm-launcher --save-dev
Usage
This launcher allows to run tests in any browser connected to test-device-manager
Adding karma-tdm-launcher to an existing Karma config
To configure this launcher, you need to add two properties to your top-level Karma config, managerConnect
and customLaunchers
, set the browsers
array to use Connected browsers.
The managerConnect
object defines global properties for each browser/platform while the customLaunchers
object configures individual browsers.
module.exports = function(config) {
var customLaunchers = {
dtm_chrome: {
base: 'ManagerLauncher',
filter: {
browserFamily: 'Safari',
platformFamily: 'Mac OS X'
}
}
};
config.set({
// The rest of your karma config is here
// ...
managerConnect: {
url: 'http://url.to.tdm:8080'
},
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
reporters: ['dots']
singleRun: true
});
};