mattermost-mobile/detox
2025-02-14 01:26:53 +05:30
..
android_emulator fix(e2e): use AOSP Android emulator for Detox test (#7440) 2023-07-10 10:30:36 -04:00
e2e Add ability to run detox tests on Android (#8553) 2025-02-14 01:26:53 +05:30
utils Add ability to run detox tests on Android (#8553) 2025-02-14 01:26:53 +05:30
.babelrc Barebones code for v2 2020-11-17 14:20:58 -03:00
.detoxrc.json Add ability to run detox tests on Android (#8553) 2025-02-14 01:26:53 +05:30
create_android_emulator.sh Add ability to run detox tests on Android (#8553) 2025-02-14 01:26:53 +05:30
package-lock.json Add ability to run detox tests on Android (#8553) 2025-02-14 01:26:53 +05:30
package.json Add ability to run detox tests on Android (#8553) 2025-02-14 01:26:53 +05:30
README.md Add ability to run detox tests on Android (#8553) 2025-02-14 01:26:53 +05:30
save_report.js Add ability to run detox tests on Android (#8553) 2025-02-14 01:26:53 +05:30
tsconfig.json Detox/E2E: Migrate e2e javascript to typescript (#6059) 2022-03-17 17:35:26 -07:00
webhook_server.js Detox/E2E: Migrate e2e javascript to typescript (#6059) 2022-03-17 17:35:26 -07:00

How to Run Detox Tests

This guide will help you set up and run Detox tests for your project.

Install Dependencies

First, navigate to the root directory of your project and install the necessary dependencies by running:

npm install

navigate to the detox folder and run npm install

Android

Build Detox Android App

To build the Detox Android app, navigate to the detox folder and run:

npm run e2e:android-build

Run Detox Android Tests

To execute the Detox tests on Android, navigate to the detox folder and run:

npm run e2e:android-test

iOS

Build iOS Simulator

To build the iOS simulator for Detox, navigate to the detox folder and run:

npm run e2e:ios-build

Run iOS Tests

To execute the Detox tests on iOS, navigate to the detox folder and run:

npm run e2e:ios-test