ocunit

Xcode 4: Run tests from the command line (xcodebuild)?

喜欢而已 提交于 2019-11-26 12:51:06
问题 I\'ve created a brand new iOS project in Xcode 4, and included unit tests. The default app has 2 targets, the main application and the unit test bundle. Using \"Product > Test\" (Command-U) builds the application, builds the unit test bundle, launches the iOS simulator and runs the tests. Now I\'d like to be able to do the same thing from the command line. The command line tool (xcodebuild) doesn\'t have a \"test\" action, but it seems like I should be able to build the unit test bundle