Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unit testing never run after setup UI testing Xcode 7

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 ?

like image 545
Zigii Wong Avatar asked Oct 31 '25 12:10

Zigii Wong


1 Answers

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.

like image 88
Sandy Avatar answered Nov 03 '25 01:11

Sandy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!