【问题标题】:Cannot read property 'type' of undefined while running detox test command运行排毒测试命令时无法读取未定义的属性“类型”
【发布时间】:2018-12-11 15:33:53
【问题描述】:

我正在尝试使用 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" }

package.json 中的配置

"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" }

【问题讨论】:

    标签: detox


    【解决方案1】:

    在传递-l verbose 选项时在命令中出错

    detox test --configuration -l verbose android.emu.release

    改成

    detox test --confituration android.emu.release -l verbose

    【讨论】:

      猜你喜欢
      • 2021-06-03
      • 2021-12-15
      • 1970-01-01
      • 2017-08-13
      • 1970-01-01
      • 2021-01-25
      • 1970-01-01
      • 1970-01-01
      • 2014-09-18
      相关资源
      最近更新 更多