xctool ...错误:构建测试:'' 不是此方案中的测试目标 [英] xctool ...ERROR: build-tests: '' is not a testing target in this scheme

查看:28
本文介绍了xctool ...错误:构建测试:'' 不是此方案中的测试目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

i try to run my Xcode UI Tests and just a specific method. It isn't possible with the default xcodebuild command line from apple. I found the xctool but the tool didn't found my 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.

and i got this error: ...ERROR: build-tests: 'UITestsTarget' is not a testing target in this scheme.

使用 xcodebuild list 我可以看到关于项目的所有信息,我可以看到我的 UITestsTarget.

with xcodebuild list i can see all the informations about project and i see my UITestsTarget.

有人有什么想法吗?干杯

has someone any ideas? Cheers

推荐答案

xctool 现在不支持 Xcode UI 测试.https://github.com/facebook/xctool/issues/534.他们说:在 Facebook,我们正在使用我们自己的基础设施(参见 https://github.com/facebook/webdriveragent) 运行 E2E 测试,因此我们不会在不久的将来开发此功能."

xctool doesn`t support Xcode UI testing now. https://github.com/facebook/xctool/issues/534. They told: " At Facebook we are using our own infrastructure (see https://github.com/facebook/webdriveragent) to run E2E tests and as a result we aren't going to work on this feature in the nearest future."

这篇关于xctool ...错误:构建测试:'' 不是此方案中的测试目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆