Files
mattermost-mobile/detox/.detoxrc.json
Joseph Baylon 92de752e2a Detox/E2E: Fix android build command and update deps (#5879)
* Detox/E2E: Fix android build command and update deps

* fix build error with assembleAndroidTest

Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com>
2021-12-17 04:17:20 +08:00

46 lines
1.5 KiB
JSON

{
"testRunner": "jest --forceExit --detectOpenHandles",
"runnerConfig": "e2e/config.js",
"configurations": {
"ios.sim.debug": {
"binaryPath": "../ios/Build/Products/Debug-iphonesimulator/Mattermost.app",
"type": "ios.simulator",
"device": {
"type": "iPhone 13"
}
},
"ios.sim.release": {
"type": "ios.simulator",
"binaryPath": "../ios/Build/Products/Release-iphonesimulator/Mattermost.app",
"build": "cd ../fastlane && NODE_ENV=production bundle exec fastlane ios simulator && cd ../detox",
"device": {
"type": "iPhone 13"
}
},
"android.emu.debug": {
"type": "android.emulator",
"binaryPath": "../android/app/build/outputs/apk/debug/app-debug.apk",
"build": "cd .. && ./node_modules/.bin/jetify && cd android && ./gradlew clean && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ../detox",
"device": {
"avdName": "detox_pixel_4_xl_api_30"
}
},
"android.emu.release": {
"type": "android.emulator",
"binaryPath": "../android/app/build/outputs/apk/release/app-release.apk",
"build": "cd .. && ./node_modules/.bin/jetify && cd android && ./gradlew clean assembleRelease assembleAndroidTest -DtestBuildType=release && cd ../detox",
"device": {
"avdName": "detox_pixel_4_xl_api_30"
}
}
},
"artifacts": {
"pathBuilder": "./e2e/path_builder.js"
},
"behavior": {
"init": {
"launchApp": false
}
}
}