Created
April 15, 2021 16:13
-
-
Save Kyonru/18606e13372273dad994672171ec9945 to your computer and use it in GitHub Desktop.
Detox config file example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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