ER: Automatically create a unit test target when creating an target

Number:rdar://7333519 Date Originated:24-Oct-2009 09:07 AM
Status:Duplicate/4496157 Resolved:28-Oct-2009 04:49 PM
Product:Developer Tool Product Version:Xcode 3.2
Classification:Enhancement Reproducible:
24-Oct-2009 09:07 AM Dave Dribin:
One of the nice things Ruby on Rails does to help encourage unit testing is to automatically create the unit test target when a new project is created.  Also, when a new model is created, Rails creates a stub unit test class for the model.

I would like to see something similar for Xcode.  When creating an application, framework, dylib, or static lib target, it would be nice to have Xcode automatically create a corresponding dependent unit test target, properly configured and ready to run.  This way, a user can just start adding unit test classes to the test target and start testing without any configuration hacking.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!