ER: Allow running of subset of tests

Originator:ddribin
Number:rdar://7333600 Date Originated:24-Oct-2009 10:30 AM
Status:Duplicate/4414914 Resolved:8-Oct-2009 04:49 PM
Product:Developer Tools Product Version:Xcode 3.2
Classification:Enhancement Reproducible:N/A
 
24-Oct-2009 10:30 AM Dave Dribin:
OCUnit has the ability to run a subset of tests of the unit test bundle by changing the command line of otest to:

  -SenTest <TestCaseClassName/testMethodName>

Because the Run Script phase runs RunUnitTests, and not otest directly, there's no way to change the command line arguments to otest and no way to run a subset of tests.

Also, it would be nice if there's a way to set up the subset of tests via the GUI.  In the simplest case, I would like to specify the test class and method to run without having to edit a Run Script phase.

An even better example is integration into the Build Results window.  Say  a particular test method fails, it would be great if there were a way (contextual menu?) for re-running only this particular test method or class again.  Thus, if I were concentrating on a single test method or test class, I could easily run that in isolation, without having to run all other tests.  Couple this with <rdar://problem/7333564>, and have it remember the subset of tests across runs, and I could just keep hitting Command-R to run the same subset of tests over and over again.

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!