Changes

Jump to: navigation, search

Mobile/Fennec/Android/Testing

198 bytes removed, 16:01, 23 February 2017
Running tests on the Android emulator
== Running tests on the Android emulator ==
The "Android 2.3 API9 opt", "Android 4.3 API11API15+ opt" and "Android 4.3 API11API15+ Debugdebug" tests on treeherder run in an Android ARM emulator. "Android 4.2 x86 opt" tests run in an Android x86 emulator. For best results reproducing test failures, try server is recommended: '''Running the same tests on the same emulator on different host hardware may produce different results'''. You can also borrow a slave: https://wiki.mozilla.org/ReleaseEngineering/How_To/Request_a_slave.
Still, if you want to run the emulator locally, using the same Android image used for tests on treeherder, it is now quite simple:
./mach android-emulator
By default, the 'android-emulator' command will download the Android 4.3 API11API15+ Android image from tooltool, install it, and launch the Android emulator using all the same parameters used for tests on treeherder. (The Android SDK must be installed locally. mach will try to find the emulator binary in your $PATH environment variable, via the $ANDROID_SDK_ROOT environment variable, through your Android build configuration, and finally in the default location used by 'mach bootstrap'.) To use the Android 2.3 API9 image:  ./mach android-emulator --version 2.3
To use the Android 4.2 x86 image:
Confirm
1,753
edits

Navigation menu