gpt4 book ai didi

ios - XCTestCase 失败后停止

转载 作者:行者123 更新时间:2023-11-28 14:31:13 25 4
gpt4 key购买 nike

我有一个 XCTestCase,但如果测试失败 - 应用会立即退出。我确实将此行更改为以下内容:

continueAfterFailure = true

失败后它仍然退出应用程序。有谁知道如何在 UI 测试失败后让应用程序保持事件状态?尚未找到解决方案。

最佳答案

默认情况下,应用程序会在测试用例运行完成后在 tearDown 方法中退出。我们需要覆盖 tearDown 方法以仅在需要时终止应用程序。

例如XCUITest Class teardown isnt deleting the app. But works if its instance teardown. What am I doing wrong?

关于ios - XCTestCase 失败后停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51244528/

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