Can you run a specific Xcuitest from the command line?

Play with iOS 9.0, Xcode GM, and the new Xcuitesting infrastructure. How can I run a specific test from the command line instead of clicking the game in an idea? I know that there is a shortcut to run all the tests, but I want to run one test.

Thanks!

+5
source share
1 answer

You can do this with the xctool command line tool to run a specific test class,

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

You can also use xcodebuild to run the entire test suite, as described here, https://krausefx.com/blog/run-xcode-7-ui-tests-from-the-command-line

+3
source

Source: https://habr.com/ru/post/1232404/


All Articles