Mobile/Fennec/Android/Testing: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 46: Line 46:


   mach robocop
   mach robocop
   OR mach robocop <test-name>
 
or
 
   mach robocop <test-name>


If you make changes to the tests and want to see them run on a device, you need to build the tests again and reinstall.
If you make changes to the tests and want to see them run on a device, you need to build the tests again and reinstall.


   mach build build/mobile/robocop
   mach build mobile/android/tests/browser/robocop
   mach robocop
   mach robocop


This builds the tests in <tt>mobile/android/tests/browser/robocop</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/tests</tt>.)
This builds the tests in <tt>mobile/android/tests/browser/robocop</tt> and then installs the debug-signed Robocop APK onto the device. (Building <tt>mobile/android</tt> also builds the tests within <tt>mobile/android/tests</tt>.)


Notes:
Notes:
Confirmed users
355

edits

Navigation menu