karma-android-emulator-launcher
v0.0.1
Published
Launch Stock Browser on Android Emulator. A Karma plugin.
Downloads
8
Maintainers
Readme
karma-android-emulator-launcher
Start Stock Browser on Android Emulator.
Installation
The easiest way is to keep karma-android-emulator-launcher
as a devDependency in your package.json
.
{
"devDependencies": {
"karma": "~0.10",
"karma-android-emulator-launcher": "~0.1"
}
}
You can simply do it by:
npm install karma-android-emulator-launcher --save-dev
Configuration
// karma.conf.js
module.exports = function(config) {
config.set({
browsers: ['Android_StockBrowser'],
customLaunchers: {
Android_StockBrowser: {
base: 'AndroidEmulator',
avdName: 'Nexus_5_API_23_x86',
sdkHome: '/Users/<user>/Library/Android/sdk/'
}
}
});
};
If you want to check which emulator (avdName) to use
emulator -list-avds
You can pass list of browsers as a CLI argument too:
karma start --browsers Android_StockBrowser
For more information on Karma see the homepage.