Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a keyboard shortcut in Xcode 6 to run a single current test function under cursor?

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?

like image 256
Evgenii Avatar asked Jan 21 '15 00:01

Evgenii


People also ask

How do I run a test case in Xcode?

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.

How do I run a test in Xcode Swift?

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.


1 Answers

Run the current test:

Control + Option + Command + U

Re-Run the last test:

Control + Option + Command + G

like image 146
sbstjn Avatar answered Oct 04 '22 18:10

sbstjn