Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cpapazaf/karma-android-device-browser-launcher


https://github.com/cpapazaf/karma-android-device-browser-launcher

android karma karma-plugin karma-test-runner unit-testing

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# karma-android-device-browser-launcher

[![NPM](https://nodei.co/npm/karma-android-device-browser-launcher.png?compact=true)](https://npmjs.org/package/karma-android-device-browser-launcher)
[![Build Status](https://travis-ci.org/cpapazaf/karma-android-device-browser-launcher.svg?branch=master)](https://travis-ci.org/cpapazaf/karma-android-device-browser-launcher)

> 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`.
```json
{
"devDependencies": {
"karma": "~0.10",
"karma-android-device-browser-launcher": "~0.1"
}
}
```

You can simply do it by:
```bash
npm install karma-android-device-browser-launcher --save-dev
```

## Configuration
```js
// karma.conf.js
module.exports = function(config) {
config.set({
browsers: ['RealAndroidBrowser'],
customLaunchers: {
RealAndroidBrowser: {
base: 'AndroidDevice',
deviceUuid: '.....', // (Mandatory)
sdkHome: '/Users//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:
```bash
karma start --browsers RealAndroidBrowser --log-level debug
```

----

For more information on Karma see the [homepage].

[homepage]: http://karma-runner.github.com