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

后端 未结 5 761
执笔经年
执笔经年 2020-11-30 18:00

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 > Te

5条回答
  •  我在风中等你
    2020-11-30 18:45

    what you're looking for is this undocumented argument (you do need sdk and target too) to run your OCUnit Tests from the terminal

    xcodebuild  -target MyTarget -sdk iphonesimulator   TEST_AFTER_BUILD=YES
    

提交回复
热议问题