visual-studio-2015 - VS2015 日志在测试运行器输出中被截断

标签 visual-studio-2015

在 Visual Studio 附带的测试运行器中,您可以在测试方法中执行许多 Console.WriteLine 语句,这些消息将写入测试的输出窗口。我在 VS2013 中广泛使用了它。不幸的是,在 VS2015 中,在我看到消息之前,我只在测试的输出中看到了一页多一点的文本

!!! LOG TRUNCATED !!! To get complete log, Select 'Copy All' on the Right Click Menu and then paste into some text editor like notepad".



该消息非常清楚 VS2015 正在做什么以及如何解决此问题。但是,我的问题是如何关闭此“功能”或至少增加缓冲区大小?

最佳答案

这已在预览中修复。然而,后来修复被回滚了。

如果更新到最新版本的 Visual Studio 2017,截断的测试输出仍然是一个限制。

不幸的是,这并不容易跟踪,因为 Microsoft 使用多种工具来跟踪 Visual Studio 开发。

您可以在此处跟踪请求该功能的用户语音故事:

https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/9719772-allow-to-turn-off-the-log-truncated-feature-of-the

或者,这里还有一个针对 Visual Studio 的公开问题:

https://developercommunity.visualstudio.com/content/problem/57030/user-voice-story-on-truncating-test-log-output-was.html

关于visual-studio-2015 - VS2015 日志在测试运行器输出中被截断,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32320218/

相关文章:

macos - Visual Studio 中的 Apache Cordova 无法连接 Mac(远程构建服务器)

c++ - 无法使用 Visual Studio 启动 DirectX 11 可执行文件,构建工作正常

visual-studio - Visual Studio 2015 安装程序被阻止

c++ - 用VS2015编译共享库 : "this client is not compatible with the paired build agent"

visual-studio-2015 - 如何获取 Visual Studio 代码分析使用的 Roslyn 版本

c# - 组合框选择的操作已更改

c++ - MFC 单选按钮组消息处理程序

entity-framework - 将自定义数据源添加到 visual studio 2015

asp.net - 如何将.net 4.6项目转换为5.0

visual-studio-2015 - VS 2015诊断工具在运行Visual Studio的多个实例时意外失败