【发布时间】:2021-03-07 05:43:58
【问题描述】:
我正在为 react native 项目设置排毒,我一直在处理配置,当我 sis detox build --configuration android 构建成功但是当我尝试运行 detox test --configuration android 时,我最终会收到以下错误 @ 987654323@
我的.detoxrc.json 文件如下所示:
{
"testRunner": "jest",
"runnerConfig": "e2e/config.json",
"apps": {
"android": {
"type": "android.apk",
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
"build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd .."
}
},
"devices": {
"simulator": {
"type": "ios.simulator",
"device": {
"type": "iPhone 12"
}
},
"emulator": {
"type": "android.emulator",
"device": {
"avdName": "Pixel_3a_API_30_x86"
}
}
},
"configurations": {
"ios": {
"device": "simulator",
"app": "ios"
},
"android": {
"device": "emulator",
"app": "android"
}
}
}
【问题讨论】:
标签: react-native detox