Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
fastlane-plugin-automated_test_emulator_run_beemo
Advanced tools
(article is deprecated - covered plugin version < 1.3.2 which doesn't support Build-Tools ver. >= 25.0.2)
See blog post related to this plugin. You can learn there how to create basic setup for this plugin step by step.
Starts any number of AVDs. AVDs are created and configured automatically according to user liking before instrumentation test process starts (started either via shell command or from gradle) and killed/deleted after test process finishes.
This project is a fastlane plugin.
fastlane-plugin-automated_test_emulator_run
, add it to your project by running:fastlane add_plugin automated_test_emulator_run_beemo
Create your *.JSON config file to create AVD launch plan according to schema below/provided example.
Wrap your test launch command with plugin and provide link to *.JSON config.
Check out the example Fastfile
to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins
and bundle exec fastlane test
.
What is JSON config?
It is a core of this plugin. User can specify any number of AVD devices in JSON file. Each AVD can be configured separately. Plugin will read JSON file and create fresh, new, untouched AVDs on host - use them in tests - and then delete them after test process finishes.
JSON file scheme:
{
"avd_list":
[
{
"avd_name": "",
"create_avd_package": "",
"create_avd_device": "",
"create_avd_tag": "",
"create_avd_abi": "",
"create_avd_additional_options": "",
"create_avd_hardware_config_filepath": "",
"launch_avd_port": "",
"launch_avd_snapshot_filepath": "",
"launch_avd_launch_binary_name": "",
"launch_avd_additional_options": ""
}
]
}
Parameters:
For official help refer to avdmanager
binary file: <sdk_root>/tools/bin/avdmanager create avd
avd_name
- name of your AVD, avoid using spaces, this field is necessarycreate_avd_package
- path to system image in example "system-images;android-23;google_apis;x86_64"create_avd_device
- name of your device visible on avdmanager list device
listcreate_avd_tag
- the sys-img tag to use for the AVD. e.g. if you are using Google Apis then set it to "google_apis"create_avd_abi
- abi for AVD e.g. "x86" or "x86_64" (https://developer.android.com/ndk/guides/abis.html)create_avd_hardware_config_filepath
- path to config.ini file containing custom config for your AVD. After AVD is created this file will be copied into AVD location before it launches.create_avd_additional_options
- if you think that you need something more you can just add your create parameters here (e.g. "--sdcard 128M", https://developer.android.com/studio/tools/help/android.html)launch_avd_snapshot_filepath
- plugin might (if you set it) delete and re-create AVD before test start. That means all your permissions and settings will be lost on each emulator run. If you want to apply qemu image with saved AVD state you can put path to it in this field. It will be applied by using "-wipe-data -initdata "launch_avd_launch_binary_name
- depending on your CPU architecture you need to choose binary file which should launch your AVD (e.g. "emulator", "emulator64-arm")launch_avd_port
- port on which you wish your AVD should be launched, if you leave this field empty it will be assigned automaticallylaunch_avd_additional_options
- if you need more customization add your parameters here (e.g. "-gpu on -no-boot-anim -no-window", https://developer.android.com/studio/run/emulator-commandline.html)Note:
--path
is not supported, if you want to change directory to where your AVD are created edit your env variable ANDROID_SDK_HOME. Which is set to ~/.android/avd
by default.Hints:
android
bin to avdmanager
bin, default settings of AVD created from terminal has changed. No resolution is set. We highly recommend to use config.ini files which you can set to create_avd_hardware_config_filepath
or specify resolution in create_avd_additional_options
. android list targets
)-gpu on
to your launching options for each device, it helps when working with many AVDsExample:
Example of complete JSON file can be found here.
For any other issues and feedback about this plugin, please submit it to this repository.
If you have trouble using plugins, check out the Plugins Troubleshooting doc in the main fastlane
repo.
fastlane
PluginsFor more information about how the fastlane
plugin system works, check out the Plugins documentation.
fastlane
fastlane
is the easiest way to automate building and releasing your iOS and Android apps. To learn more, check out fastlane.tools.
This Plugin is a fork of AzimoLabs' Plugin
FAQs
Unknown package
We found that fastlane-plugin-automated_test_emulator_run_beemo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.