6

When I try to run test cases in XCTest, I noticed that XCode will always active the app first. Since my app runs a lot of stuff during initialization (ex: checking new versions), I don't want it to run when I am debugging the test case.

Is there a way to run XCTest without activating the app?

Hai Feng Kao
  • 5,219
  • 2
  • 27
  • 38

1 Answers1

-2

In the Xcode Menu Test under Product.This will run the tests only.

TalkingCode
  • 13,407
  • 27
  • 102
  • 147
  • 2
    I tried this, but the app still starts before testing begins. I tried to create another empty app, but the problem still persists. – Hai Feng Kao Feb 10 '14 at 15:56