简体   繁体   English

您可以从命令行运行特定的Xcuitest吗?

[英]Can you run a specific Xcuitest from the command line?

Playing with iOS 9.0, Xcode GM and the new Xcuitesting framework. 使用iOS 9.0,Xcode GM和新的Xcuitesting框架。 How can I run a specific test from the command line instead of having to click play in the ide? 如何从命令行运行特定测试,而不必在ide中单击“播放”? I know there's a shortcut to run all the tests but I want to run a single test. 我知道有运行所有测试的捷径,但我想运行一个测试。

Thanks! 谢谢!

You should be able to do that with xctool command line tool for running specific test class, 您应该可以使用xctool命令行工具执行此操作,以运行特定的测试类,

xctool -workspace YourWorkspace.xcworkspace -scheme YourScheme test -only myUITestTarget:UITestClass

You can also use xcodebuild to run the entire test suite as explained here, https://krausefx.com/blog/run-xcode-7-ui-tests-from-the-command-line 您还可以按照以下说明使用xcodebuild运行整个测试套件, https://krausefx.com/blog/run-xcode-7-ui-tests-from-the-command-line

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM