xctool …ERROR: build-tests: '' is not a testing target in this scheme

橙三吉。 提交于 2019-12-13 19:42:53

问题


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.

Here my command line:

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

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

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

has someone any ideas? Cheers


回答1:


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



来源:https://stackoverflow.com/questions/35181126/xctool-error-build-tests-is-not-a-testing-target-in-this-scheme

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!