gpt4 book ai didi

ios - 新 XCODE 6.3 更新 : Apr 8, 2015 构建 : 6D570 buggy with Unit Tests?

转载 作者:行者123 更新时间:2023-11-29 10:31:03 25 4
gpt4 key购买 nike

XCODE 更新时间:2015 年 4 月 8 日 build :6D570

在使用最新的 beta 版本非常成功后,我现在更新到新版本,我很惊讶它看起来有多么错误。永远索引,无法执行单个单元测试,因为“func testXXX”行未被识别为测试并且缺少执行此测试的按钮。

有解决办法吗?我需要执行单个测试,因为我的所有测试都需要 1-2 分钟。

最佳答案

在运行整个测试套件至少一次(使用 ⌘U 或 Product >> Test)之后,您可以右键单击各个测试并选择“Text XXX”以再次运行该单个测试...但是每次您添加一个新的测试,你必须再次运行它们才能发现它们......

来自 Xcode 6.3 发行说明:

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 - 新 XCODE 6.3 更新 : Apr 8, 2015 构建 : 6D570 buggy with Unit Tests?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29612390/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com