Useful XCTest Keyboard Shortcuts

Here are some helpful keyboard shortcuts that can help you run your unit tests much more quickly

  • To run all tests:

CMD + U

  • To run whichever test your text caret (those blinking thing) is currently in:

CTRL + Alt + CMD + U

  • To run the last test that you have ran:

CTRL + Alt + CMD + G