解毒不在Android上运行测试,但在iOS上运行良好
应用程序的测试在iOS上运行良好,但只是停留在启动屏幕上 我已经运行了android的build命令,它创建的构建非常好。当运行test命令以运行E2E测试时,应用程序会被安装,但不会执行任何测试 为测试安装了应用程序,但未运行任何测试。似乎解毒服务器无法找到测试ID为的和UI元素 下面是package.json文件的一部分解毒不在Android上运行测试,但在iOS上运行良好,android,json,react-native,detox,Android,Json,React Native,Detox,应用程序的测试在iOS上运行良好,但只是停留在启动屏幕上 我已经运行了android的build命令,它创建的构建非常好。当运行test命令以运行E2E测试时,应用程序会被安装,但不会执行任何测试 为测试安装了应用程序,但未运行任何测试。似乎解毒服务器无法找到测试ID为的和UI元素 下面是package.json文件的一部分 "devDependencies": { "babel-core": "^7.0.0-beta.47", "babel-jest": "^23.2.0",
"devDependencies": {
"babel-core": "^7.0.0-beta.47",
"babel-jest": "^23.2.0",
"detox": "10.0.3",
"eslint-config-rallycoding": "^3.2.0",
"jest": "^23.4.2",
"react-test-renderer": "16.4.1"
},
"jest": {
"preset": "react-native"
},
"devDependencies": {
"babel-core": "^7.0.0-beta.47",
"babel-jest": "^23.2.0",
"detox": "10.0.3",
"eslint-config-rallycoding": "^3.2.0",
"jest": "^23.4.2",
"react-test-renderer": "16.4.1"
},
"detox": {
"test-runner": "jest",
"specs": "e2e",
"configurations": {
"ios.sim.debug": {
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/hektor.app",
"build": "cd ios && xcrun xcodebuild -workspace hektor.xcworkspace -scheme hektor -configuration Debug -destination 'platform=iOS Simulator,name=iPhone X,OS=12.1' -derivedDataPath build && cd ..",
"type": "ios.simulator",
"name": "iPhone X"
},
"android.emu.debug": {
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
"build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..",
"type": "android.attached",
"name": "2e1c66bf",
"adb": "2e1c66bf"
}
}
}
}
我正在分享我上传端到端测试代码的回购协议的链接
依赖项:
反应本机:0.56.0
节点:11.9.0
设备:安卓你能在哪里解决这个问题?安卓没有,我们没有。所以,我们决定开玩笑。你能在哪里解决这个问题呢?用android,不,我们没有。所以,我们决定开玩笑。