How to run single test case in Xcode?
Xcode 4 now have this feature. Simply create a "run scheme" that has the test cases that you want to run.
- Open menu "Product|Edit Scheme..."
- Click on "Edit..."
- In the left pane, expand the "Test" section.
- In the right pane, expand the test bundle and uncheck the test cases you don't need to run.
⌃+⌥+⌘+U
You can also use the keyboard short cut of Control-Option-Command-U
Expert taken from Apple Documentation
Product > Perform Action > Test . This dynamic menu item senses the current test method in which the editing insertion point is positioned when you’re editing a test method and allows you to run that test with a keyboard shortcut. The command’s name adapts to show the test it will run, for instance, Product > Perform Action > Test testAddition. The keyboard shortcut is Control-Option-Command-U.