如何获得Xcode 7,以保持UI测试目标的日志记录输出? [英] How can I get Xcode 7 to keep around the logging output from the UI Test target?
问题描述
我已经开始使用Xcode 7的UI测试功能,当我运行测试时,我得到的测试输出显示在调试区域的内容窗格中.
I've started using the UI Test features of Xcode 7, and when I run a test, I get the output from testing showing up in the content pane of the debugging area.
但是,一旦测试完成,该输出就会被应用程序本身的日志记录所代替.
However, as soon as the testing is finished, that output gets replaced by the logging from the application itself.
是否可以使两组记录的数据保持可见?
Is there a way to keep both sets of logged data visible?
添加一个我想看的例子:
Adding an example, of what I want to see:
推荐答案
可能无法完全解决您的问题:我遇到了类似的问题(并找到了您的问题!),只是发现您可以选择 which 日志输出显示在调试区域:
Might not completely solve your issue: I was having a similar problem (and found your question!) and just found out that you can select which logging output is shown in the Debug Area:
也许,如果将其与巧妙地插入的测试断点结合起来,则可能(部分地)达到您想要的;-)
Maybe, if you combine this with a cleverly inserted test breakpoint you might (partially) achieve what you were looking for ;-)
这篇关于如何获得Xcode 7,以保持UI测试目标的日志记录输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!