1.0.0 • Published 7 years ago

karma-android-device-browser-launcher v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

karma-android-device-browser-launcher

NPM Build Status

Run Karma Tests on the available android browsers. Tests will run on the physical android devices connected to your pc.

Installation

The easiest way is to keep karma-android-device-browser-launcher as a devDependency in your package.json.

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-android-device-browser-launcher": "~0.1"
  }
}

You can simply do it by:

npm install karma-android-device-browser-launcher --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    browsers: ['RealAndroidBrowser'],
    customLaunchers: {
      RealAndroidBrowser: {
        base: 'AndroidDevice',
        deviceUuid: '.....', // (Mandatory)
        sdkHome: '/Users/<user>/Library/Android/sdk/', // (Mandatory)
        deviceBrowser: 'firefox' //(optional) select from [chrome, internet, firefox]. default is: internet
      }
    }
  });
};

You can pass list of browsers as a CLI argument too:

karma start --browsers RealAndroidBrowser --log-level debug

For more information on Karma see the homepage.