Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to run individual test cases/test classes on the command line with xcode 5?

I can run all unit tests using the following command:

xcodebuild test -workspace Project.xcworkspace -scheme Scheme -sdk iphonesimulator7.0 -destination platform='iOS Simulator',OS=7.0,name='iPhone Retina (4-inch)'

Is there anything I can pass to this to run individual unit tests/classes in the same way that you can using the Xcode UI?

Cheers.

like image 786
Michael Avatar asked Oct 12 '13 14:10

Michael


1 Answers

Not that I know of, and it's not on the man page either. But you have such option in the excellent xctool (-only SomeTestTarget:SomeTestClass/testSomeMethod).

like image 103
Jano Avatar answered Oct 31 '22 20:10

Jano