单元测试 – Xcode 6.3缺少单元测试状态/在编辑器中运行

我刚刚升级Xcode 6.3,我丢失了编辑器左侧阴沟中显示的单元测试状态/运行指示器.在我执行编译和测试(Ctrl-U)之前,状态/运行指示器不会立即显示在Test Navigator中.测试运行后,测试导航器将显示状态/运行指示器,但编辑器中的状态/运行指示器从不显示.

有没有其他人注意到这一点?我真的需要把它们拿回来.我希望有人知道如何解决这个问题.

提前致谢.

解决方法

抱歉.我以为我已经阅读了Apple最新的Xcode发行说明,但我显然错过了这一部分.不管怎么说,还是要谢谢你.

Swift tests are not automatically discovered in this release of Xcode.
Test annotations in the source editor sidebar will not appear,and the
test navigator and the table of tests in the Test action of the scheme
sheet will be empty. You can run Swift tests by selecting Product >
Test. Once tests have been run,they appear in the test navigator and
the scheme sheet. The following limitations apply:

Tests discovered through execution in this manner provide limited interaction in the test navigator. For example,Run buttons do not appear and clicking on a test in the navigator does not jump to the source code except in the case of a test error. Run buttons and test success/fail indicators will not appear in the source editor. (20373533)

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...