Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2015 Log Truncated in test runner output

In the test runner that comes with Visual Studio you can do a number of Console.WriteLine statements in you test method and those messages will be written to the Output window of the test. I've used that extensively in VS2013. Unfortunately in VS2015 I only see a little over a page of text in the test's Output before I see the message

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

The message is very clear what VS2015 is doing and how to workaround this. However, my question is how to I turn this "feature" off or at least increase the buffer size?

like image 985
Timothy Klenke Avatar asked Aug 31 '15 21:08

Timothy Klenke


1 Answers

This had been fixed in a preview. However, later on the fix was rolled the back.

If you update to the latest version of Visual Studio 2017, truncated test output is still a limitation.

Unfortunately, this is not simple to track as Microsoft uses multiple tools to track visual studio development.

You can track a user voice story here requesting the feature:

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

Or, alternatively an open issue against visual studio here:

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

like image 140
no_i_am_spartacus Avatar answered Nov 10 '22 12:11

no_i_am_spartacus