mattermost-mobile/detox
2024-12-09 23:20:05 +05:30
..
android_emulator fix(e2e): use AOSP Android emulator for Detox test (#7440) 2023-07-10 10:30:36 -04:00
e2e Fix: Android build for Detox e2e (#8362) 2024-12-09 23:20:05 +05:30
utils Fix: Env variabled to pick up right simulator device for tests (#8367) 2024-11-29 11:48:35 +05:30
.babelrc Barebones code for v2 2020-11-17 14:20:58 -03:00
.detoxrc.json Fix: Env variabled to pick up right simulator device for tests (#8367) 2024-11-29 11:48:35 +05:30
create_android_emulator.sh fix(e2e): use AOSP Android emulator for Detox test (#7440) 2023-07-10 10:30:36 -04:00
inject-detox-settings.js Fix: Android build for Detox e2e (#8362) 2024-12-09 23:20:05 +05:30
package-lock.json Remove axios and detox from package.json in the root folder (#8219) 2024-09-16 10:51:43 +08:00
package.json Fix: Android build for Detox e2e (#8362) 2024-12-09 23:20:05 +05:30
README.md Fix: Android build for Detox e2e (#8362) 2024-12-09 23:20:05 +05:30
save_report.js fix: saving e2e test report in Zephyr (#8080) 2024-07-12 21:07:31 +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

Android

Install Dependencies

From the root directory, run the following command to install the necessary dependencies:

npm install

Inject Detox Settings

To inject the Detox settings into your project, navigate to the detox directory and run the following command:

npm run inject-detox-settings

Update minSdkVersion for react-native-image-picker

On macOS machines, update the minSdkVersion of react-native-image-picker to 23 by running the following command from the root directory:

sed -i '' 's/minSdkVersion 21/minSdkVersion 23/' ./node_modules/react-native-image-picker/android/build.gradle

Build detox android app

From the detox folder run:

npm run e2e:android-build