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

标签 unit-testing testing xctest xcode6.3

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

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

提前致谢。

最佳答案

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

关于unit-testing - Xcode 6.3 缺少单元测试状态/在编辑器中运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29574306/

相关文章:

java - Appium:如何为 XCUIElement 使用 ios 谓词策略

java - 在 Mockito 中使用静态初始化 block

unit-testing - tdd - 为第 3 方代码创建测试

android - 如何使用 ActivityInstrumentationTestCase2 捕获异常?

c# - 如何使用 Visual Studio 和 C# 减少单元测试的编译时间

ios - XCTest,加载测试包失败。测试启动时崩溃

ios - 不要停止 XCTAssertThrowsSpecific 上的测试执行

c# - TestInitialize 和 TestCleanup 未在 DataTestMethod 的每个 DataRow 之前和之后运行

c# - 依赖私有(private)方法测试公共(public)方法的方法

javascript - TestCafe - 在 <select> 中选择选项