mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
a12713c1bf
Also makes the developer-facing `make mochitest-robocop` run robocop-debug-signed.apk, and deprecates `make mochitest-robotium` (since we name this suite robocop on TBPL).
44 lines
1.4 KiB
ReStructuredText
44 lines
1.4 KiB
ReStructuredText
Robocop Mochitest
|
|
=================
|
|
|
|
*Robocop Mochitest* tests run on Native Android builds marked with an
|
|
'rc' in TBPL. These are Java based tests which run from the mochitest
|
|
harness and generate similar log files. These are designed for
|
|
testing the native UI of Android devices by sending events to the
|
|
front end.
|
|
|
|
See the documentation at
|
|
https://wiki.mozilla.org/Auto-tools/Projects/Robocop/WritingTests for
|
|
details.
|
|
|
|
Development cycle
|
|
-----------------
|
|
|
|
To deploy the robocop APK to your device and start the robocop test
|
|
suite, use::
|
|
|
|
make -C $OBJDIR mochitest-robocop
|
|
|
|
The Java files in ``mobile/android/base/tests`` are dependencies of the
|
|
robocop APK built by ``build/mobile/robocop``. If you modify Java files
|
|
in ``mobile/android/base/tests``, you need to rebuild the robocop APK
|
|
with::
|
|
|
|
mach build/mobile/robocop
|
|
|
|
Changes to ``.html``, ``.css``, ``.sjs``, and ``.js`` files in
|
|
``mobile/android/base/tests`` do not require rebuilding the robocop
|
|
APK -- these changes are always 'live', since they are served by the
|
|
mochitest HTTP server and downloaded each test run by your device.
|
|
|
|
``mach package`` does build and sign a robocop APK, but ``make
|
|
mochitest-robocop`` does not use it. (This signed APK is used to test
|
|
signed releases on the buildbots).
|
|
|
|
As always, changes to ``mobile/android/base``, ``mobile/android/chrome``,
|
|
``mobile/android/modules``, etc., require::
|
|
|
|
mach mobile/android/base && mach package && mach install
|
|
|
|
as usual.
|