单元测试 – 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)

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...