100 lines
2.4 KiB
JSON
100 lines
2.4 KiB
JSON
{
|
|
"testRunner": {
|
|
"$0": "jest",
|
|
"args": {
|
|
"config": "e2e/config.js"
|
|
}
|
|
},
|
|
"apps": {
|
|
"ios.debug": {
|
|
"type": "ios.app",
|
|
"binaryPath": "../mobile-artifacts/Mattermost.app"
|
|
},
|
|
"ios.release": {
|
|
"type": "ios.app",
|
|
"binaryPath": "../ios/Build/Products/Release-iphonesimulator/Mattermost.app",
|
|
"build": "cd .. && npm run build:ios-sim && cd detox"
|
|
},
|
|
"android.debug": {
|
|
"type": "android.apk",
|
|
"binaryPath": "../android/app/build/outputs/apk/debug/app-debug.apk",
|
|
"build": "cd ../android && ./gradlew clean && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ../detox"
|
|
},
|
|
"android.release": {
|
|
"type": "android.apk",
|
|
"binaryPath": "../android/app/build/outputs/apk/release/app-release.apk",
|
|
"build": "cd ../android && ./gradlew clean && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ../detox"
|
|
}
|
|
},
|
|
"devices": {
|
|
"ios.simulator": {
|
|
"type": "ios.simulator",
|
|
"device": {
|
|
"type": "__DEVICE_NAME__",
|
|
"os": "__DEVICE_OS_VERSION__"
|
|
},
|
|
"environment": {
|
|
"MM_FEATUREFLAGS_InteractiveDialogAppsForm": "true"
|
|
}
|
|
},
|
|
"android.emulator": {
|
|
"type": "android.emulator",
|
|
"device": {
|
|
"avdName": "detox_pixel_4_xl_api_34"
|
|
},
|
|
"environment": {
|
|
"MM_FEATUREFLAGS_InteractiveDialogAppsForm": "true"
|
|
}
|
|
}
|
|
},
|
|
"configurations": {
|
|
"ios.sim.debug": {
|
|
"device": "ios.simulator",
|
|
"app": "ios.debug"
|
|
},
|
|
"ios.sim.release": {
|
|
"device": "ios.simulator",
|
|
"app": "ios.release"
|
|
},
|
|
"android.emu.debug": {
|
|
"device": "android.emulator",
|
|
"app": "android.debug"
|
|
},
|
|
"android.emu.release": {
|
|
"device": "android.emulator",
|
|
"app": "android.release"
|
|
}
|
|
},
|
|
"artifacts": {
|
|
"pathBuilder": "./e2e/path_builder.js",
|
|
"plugins": {
|
|
"screenshot": {
|
|
"shouldTakeAutomaticSnapshots": true,
|
|
"keepOnlyFailedTestsArtifacts": true
|
|
},
|
|
"video": {
|
|
"enabled": false
|
|
},
|
|
"log": {
|
|
"enabled": true
|
|
}
|
|
}
|
|
},
|
|
"behavior": {
|
|
"init": {
|
|
"reinstallApp": false,
|
|
"launchApp": false
|
|
},
|
|
"cleanup": {
|
|
"shutdownDevice": false
|
|
}
|
|
},
|
|
"session": {
|
|
"sessionId": "mobile-test-session",
|
|
"debugSynchronization": 20000,
|
|
"autoStart": true
|
|
},
|
|
"visibility": {
|
|
"threshold": 75
|
|
}
|
|
}
|