【问题标题】:xctool ...ERROR: build-tests: '' is not a testing target in this schemexctool ...ERROR: build-tests: '' is not a testing target in this scheme
【发布时间】:2016-05-12 21:22:30
【问题描述】:

我尝试运行我的 Xcode UI 测试和一个特定的方法。苹果的默认 xcodebuild 命令行是不可能的。我找到了 xctool,但该工具没有找到我的 UITestsTarget。

这里是我的命令行:

/path/to/xctool -workspace APP.xcworkspace -scheme "APPScheme" test -only UITestsTarget:UITestsClass/UITestsMethod

我收到了这个错误:...ERROR: build-tests: 'UITestsTarget' is not a testing target in this scheme.

使用xcodebuild list,我可以看到有关项目的所有信息,并且我看到了我的 UITestsTarget。

有人有什么想法吗? 干杯

【问题讨论】:

    标签: xcode swift xcodebuild xcode-ui-testing xctool


    【解决方案1】:

    xctool 现在不支持 Xcode UI 测试。 https://github.com/facebook/xctool/issues/534。他们告诉我们:“在 Facebook,我们正在使用自己的基础架构(请参阅 https://github.com/facebook/webdriveragent)来运行 E2E 测试,因此我们不会在最近的将来开发此功能。”

    【讨论】:

      猜你喜欢
      • 2021-08-01
      • 1970-01-01
      • 2020-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-13
      • 1970-01-01
      相关资源
      最近更新 更多