Support for command line unit testing of iOS application tests

Originator:sgleadow
Number:rdar://13857060 Date Originated:10-May-2013
Status:Open Resolved:
Product:Developer Tools Product Version:4.6
Classification:Enhancement Reproducible:Always
 
10-May-2013 03:26 PM Stewart Gleadow:
Summary:
Being able to run unit tests from the command line is essential to make the tests useful. Currently, it is possible to run logic tests from the command line by passing TEST_AFTER_BUILD=YES into the xcodebuild command. However, it is not possible to run application unit tests in the same way. There are various hacks available on the internet in order to do this, but they are unsupported and often break with new versions of Xcode.

Ideally, unit tests (whether logic or application) should run using 'xcodebuild test' and specifying the necessary workspace/scheme/project/target arguments.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!