Confirmed users
1,759
edits
Line 37: | Line 37: | ||
This builds the tests in <tt>mobile/android/base/tests</tt> and then installs the debug-signed Robocop APK onto the device. (It's unintuitive that building <tt>mobile/android</tt> doesn't build the tests within <tt>mobile/android/base/tests</tt>.) | This builds the tests in <tt>mobile/android/base/tests</tt> and then installs the debug-signed Robocop APK onto the device. (It's unintuitive that building <tt>mobile/android</tt> doesn't build the tests within <tt>mobile/android/base/tests</tt>.) | ||
Notes: | |||
* Mach is self documenting! For help, try <tt>mach help robocop</tt>. | * Mach is self documenting! For help, try <tt>mach help robocop</tt>. | ||
* To run one test at a time, find the test name (like "testLoad") in <tt>mobile/android/base/tests/robocop.ini</tt> and pass it as an argument, like: <tt>mach robocop testLoad</tt>. | * To run one test at a time, find the test name (like "testLoad") in <tt>mobile/android/base/tests/robocop.ini</tt> and pass it as an argument, like: <tt>mach robocop testLoad</tt>. | ||
Line 43: | Line 43: | ||
* <tt>MOZ_HOST_BIN</tt> is used to launch <tt>xpcshell</tt> on the desktop to provide a web server. | * <tt>MOZ_HOST_BIN</tt> is used to launch <tt>xpcshell</tt> on the desktop to provide a web server. | ||
Troubleshooting: | |||
* Ensure the device's screen is on | * Ensure the device's screen is on | ||
* Ensure that the device and host machine are on the same network. | * Ensure that the device and host machine are on the same network. |