Skip to content

Instantly share code, notes, and snippets.

@Kyonru
Created April 15, 2021 16:13
Show Gist options
  • Save Kyonru/18606e13372273dad994672171ec9945 to your computer and use it in GitHub Desktop.
Save Kyonru/18606e13372273dad994672171ec9945 to your computer and use it in GitHub Desktop.
Detox config file example
{
"testRunner": "jest",
"runnerConfig": "e2e/config.json",
"apps": {
"ios.debug": {
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/<<name>>.app",
"build": "xcodebuild -workspace ios/<<name>>.xcworkspace -scheme <<scheme>> -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build ONLY_ACTIVE_ARCH=YES -quiet",
"type": "ios.app"
},
"ios.release": {
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/<<name>>.app",
"build": "xcodebuild -workspace ios/<<name>>.xcworkspace -scheme <<scheme>> -configuration Release -sdk iphonesimulator -derivedDataPath ios/build ONLY_ACTIVE_ARCH=YES -quiet",
"type": "ios.app"
},
"android.debug": {
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
"build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..",
"type": "android.apk"
},
"android.release": {
"binaryPath": "android/app/build/outputs/apk/release/app-release.apk",
"build": "cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..",
"type": "android.apk"
}
},
"devices": {
"simulator": {
"type": "ios.simulator",
"device": {
"type": "iPhone 11"
}
},
"emulator": {
"type": "android.emulator",
"device": {
"avdName": "Pixel_2_API_29"
}
}
},
"configurations": {
"ios.sim.debug": {
"device": "simulator",
"app": "ios.debug"
},
"ios.sim.release": {
"device": "simulator",
"app": "ios.release"
},
"android.emu.debug": {
"device": "emulator",
"app": "android.debug"
},
"android.emu.release": {
"device": "emulator",
"app": "android.release"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment