Run individual XCUITest from command line?

How do you run an individual XCUITest from the command line? As far as I can tell, xcodebuild makes this impossible. xctool technically supports this but has a few bugs including broken incremental compliation.


https://github.com/facebook/xctool/issues/248

Answered by Engineer in 93347022

xcodebuild doesn't provide you with the ability to invoke subsets of tests, it only allows you to run the set of tests configured in the provided scheme.

Accepted Answer

xcodebuild doesn't provide you with the ability to invoke subsets of tests, it only allows you to run the set of tests configured in the provided scheme.

Is there any hope of xcodebuild adding this feature? Or made open source so people can easily extend it? Hacking around with private APIs works but it's buggy.

The best way to influence what we do is to file bug reports / enhancements requests. There's certainly hope. We know that this would be desirable to have.

Ok, I've submitted 23861192 to radar. Thanks for responding.

Run individual XCUITest from command line?
 
 
Q