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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With