我正在尝试使用package.json配置进行排毒测试
detox test --configuration -l verbose android.emu.release
遇到此错误
(config.configurations[program.configuration].type).split('.')[0]; ^ TypeError: Cannot read property 'type' of undefined
package.json下的脚本
"script":{
"e2e:test-release": "detox test --configuration android.device.release.debug"
}
配置
"android.emu.releaseTest":{
"binaryPath": "android/app/build/outputs/apk/release/app-release.apk",
"build": "cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..",
"type": "android.emulator",
"name": "Nexus_5X_API_27"
}
答案 0 :(得分:0)
在传递-l verbose
选项的同时在命令中犯了一个错误
detox test --configuration -l verbose android.emu.release
将其更改为
detox test --confituration android.emu.release -l verbose