我们目前面临的问题是我们的 UITest 需要很长时间。
原因是应用程序从最后一次 UITest 终止需要 20 到 50 秒。使用 90 UITest,我们目前的一轮测试时间为 90 分钟(由于 90 分钟的限制,目前在我们的 CI 上失败了)。
这里是测试步骤的一个小输出。
2018-05-18 11:15:34.757243+0200 OurAppUITests-Runner[46090:16633867] Currently executing: "Given the app is launched"
t = 0.21s Given the app is launched
t = 0.21s Open de.ourApp.ourApp
t = 0.26s Launch de.ourApp.ourApp
t = 0.26s Terminate de.ourApp.ourApp:46132
t = 32.21s Wait for de.ourApp.ourApp to idle
我们尝试在每个 UITest 结束时终止应用程序,但它只是将“等待”时间移到了 UITest 结束。
我们正在使用Cucumberish从小黄瓜文件中生成测试。但是我们使用 XCUITests 运行测试。
对于可能导致终止需要这么长时间的各种原因,我将不胜感激。