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 { var customLaunchers = dtm_chrome: base: 'ManagerLauncher' filter: browserFamily: 'Safari' platformFamily: 'Mac OS X' ; config;};