Search code examples
objective-cxcodexcode5

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.


Solution

  • 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).