This question already has an answer here:
这个问题已经有了答案:
- XCode 5 unit testing: starts my app 7 answers
- XCode 5单元测试:启动app 7答案
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.
当我尝试在XCTest中运行测试用例时,我注意到XCode总是首先激活应用程序。由于我的应用程序在初始化过程中运行了很多东西(例如:检查新版本),所以我不希望它在调试测试用例时运行。
Is there a way to run XCTest without activating the app?
有没有办法在不激活应用程序的情况下运行XCTest ?
1 个解决方案
#1
-2
In the Xcode Menu Test under Product.This will run the tests only.
在产品下的Xcode菜单测试中。这将只运行测试。
#1
-2
In the Xcode Menu Test under Product.This will run the tests only.
在产品下的Xcode菜单测试中。这将只运行测试。