Is there a keyboard shortcut in Xcode 6 to run the current test case under cursor? I know I can press Command + u to run all tests. Also, I can tap the test icon located to the left of the test function or tap the icon in 'Test Navigator'. Is there a keyboard shortcut to run only the single test function under cursor?
In Xcode 5 you can run a single test case by clicking the little play button that you can find next to the test in the test navigator or next to the test method in the editor. In both places it shows up when you hover over it.
Run Selected Test Case You can use ⌃⌥⌘U to trigger the test case where your text cursor is currently located. If your text cursor is highlighting an XCTestCase class, then all the test cases within that class will be run.
Run the current test:
Control + Option + Command + U
Re-Run the last test:
Control + Option + Command + G
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With