Run tests on emulated Android and iOS

Sections in this article

Note
Prerequisite - Your computer is expected to have been set up accordingly. Please follow the following guides for this purpose:
Important
Different terminals have to be opened at the same time. Obviously, that could be terminal tabs. In this guide, terminal X refers indifferently to a terminal or one of its tabs.

Preliminary steps (common to Android and iOS)

  1. Build the relevant version of live-common and yalc publish

  2. Clone or pull Ledger-Coin-Integration-team/ledger-live-mobile and checkout the relevant branch

Terminal 1 Terminal 2
From ledger-live-mobile directory:
$ yalc add @ledgerhq/live-common
$ yarn
$ yarn start
Expected output:
$ ledger-live proxy
Expected output:

At this stage, an IP address is provided.
It will be used at a further stage to pair the Nano with the mobile app.

Android

Terminal 3 Terminal 4
$ adb start-server
$ emulator -avd <name of the device>
# e.g. emulator -avd Pixel_XL_API_30
Expected output:

At this stage, the emulator starts.
$ yarn run android
Expected output:

At this stage, the Mobile app starts.
Note: if the app is blank, just relaunch it.

Then, pair the Nano using the IP address provided in the preliminary steps

iOS

Terminal 3
$ yarn run ios
Expected output:

At this stage, both the emulator and the Mobile app start.

Then, pair the Nano using the IP address provided in the preliminary steps


Specific CLI Checklist - User tests
Live Common Bridge Test Framework
Getting Started
Theme Features
Customization