Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cpapazaf/karma-android-device-browser-launcher
- Owner: cpapazaf
- License: mit
- Created: 2017-02-10T14:17:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-30T13:33:48.000Z (over 3 years ago)
- Last Synced: 2024-10-30T05:59:16.055Z (about 2 months ago)
- Topics: android, karma, karma-plugin, karma-test-runner, unit-testing
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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