Xcode 6.3 在编辑器中缺少单元测试 status/run

Xcode 6.3 missing unit test status/run in editor

我刚刚升级到 Xcode 6.3,但我丢失了显示在编辑器左侧排水沟中的单元测试 status/run 指示器。在我执行编译和测试 (Ctrl-U) 之前,status/run 指标不会立即显示在测试导航器中。在测试具有 运行 之后,测试导航器将显示 status/run 指示器,但永远不会显示编辑器中的 status/run 指示器。

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

提前致谢。

对不起。我以为我已经通读了 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)

XCode 6.3 中的此错误已在 XCode 6.3.1 中修复。

葛德