Does anyone know how to run unit tests in xCode?
I was able to get xCode to run unit tests from the terminal by following the instructions on http://www.raingrove.com/2012/03/28/running-ocunit-and-specta-tests-from-command-line.html
. However, when I set up a command line build step in TeamCity, it does something different. The build in TeamCity never completes. It seems to build the app, and then it waits for user input. Does anyone know how to overcome this problem? Thanks.
The command that I am running is:
xcodebuild -workspace <project>.xcodeproj/project.xcworkspace -scheme TestScheme -sdk iphonesimulator TEST_AFTER_BUILD=YES clean build