I am trying to test my react native app by using detox. I run detox build --configuration android.emu.debug successfully but when I run detox test --configuration android.emu.debug, I got an error :
Error: app binary not found at 'xxx/xxx/android/app/build/outputs/apk/androidTest/debug/app-debug.apk', did you build it?
I changed the path but it is not working. How can I solve this problem?
"testRunner": "jest",
"runnerConfig": "e2e/config.json",
"configurations": {
"ios": {
"type": "ios.simulator",
"binaryPath": "./ios/build/Build/Products/Debug-iphonesimulator/xxx.app",
"build": "xcodebuild -workspace iOS/xxx.xcworkspace -scheme xxx -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
"device": {
"type": "iPhone 11"
}
},
"android.emu.debug": {
"device": {
"avdName": "Pixel_API_28_AOSP"
},
"type": "android.emulator",
"binaryPath": "android/app/build/outputs/apk/androidTest/debug/app-debug.apk",
"build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd .."
},
"android.emu.release": {
"device": "emulator",
"type": "android.emulator",
"app": "android.release"
}
}
}
It works on iOS
Aucun commentaire:
Enregistrer un commentaire