There must be some misunderstanding. What exactly do you want to run from the command line? Test package? If so, the test suite should be a separate goal, so all you need to do is build it, for example, as follows:
xcodebuild -target UnitTests -sdk iphonesimulator2.2.1 -configuration Debug
If you have a test target set, it will run RunIPhoneUnitTest.sh , which comes with the Google toolbar, and the script will run all your tests.
source share