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

前端之家收集整理的这篇文章主要介绍了单元测试 – Xcode 6.3缺少单元测试状态/在编辑器中运行前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我刚刚升级Xcode 6.3,我丢失了编辑器左侧阴沟中显示的单元测试状态/运行指示器.在我执行编译和测试(Ctrl-U)之前,状态/运行指示器不会立即显示在Test Navigator中.测试运行后,测试导航器将显示状态/运行指示器,但编辑器中的状态/运行指示器从不显示.

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

提前致谢.

@H_403_6@

解决方法

抱歉.我以为我已经阅读了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)

@H_403_6@ @H_403_6@ 原文链接:https://www.f2er.com/iOS/334558.html

猜你在找的iOS相关文章