Install the latest Android SDK.
sdkmanager "system-images;android-30;google_apis;x86"
sdkmanager --licenses
Create the emulator using npm run e2e:android-create-emulator
from the /detox
folder. Android testing requires an emulator named detox_pixel_4_xl_api_30
and the script helps to create it automatically.
This is the typical flow for local development and test writing:
npm install && npm start
from the root folder./detox
folder.npm install
.npm run e2e:android-build
.npm run e2e:android-test
.This is the typical flow for CI test run:
npm install && npm run e2e:android-build-release
from the /detox
folder.npm run e2e:android-test-release
from the /detox
folder.