4

I set up UI testing MyProjectUITests in Xcode 7 and I also added a new unit test in to target MyProjectTests. However, when I typed Command + U, it seems like Xcode always testing my project with UI Testing.

Question: How could I choose to build specifically for UI testing or unit testing if need ?

Senseful
  • 86,719
  • 67
  • 308
  • 465
Zigii Wong
  • 7,766
  • 8
  • 51
  • 79

1 Answers1

4

Select your scheme. Edit scheme ->Test- > Add Unit test with '+' button

enter image description here

To choose to build specifically you can check/uncheck the checkbox under Test.

Sandy
  • 3,021
  • 1
  • 21
  • 29