5

When I run the below code in the Developer Command Prompt for Visual Studio:

vstest.console.exe UnitTestAssemblyName.dll

I receive the following:

Passed   Test_1   
Text
Text
Text
(...)
Passed   Test_2

Where "Text" is logged as a result of Test_2 C# unit test that uses a C library with a fprintf(stdout, "Text") statement. I want to remove these "Text" output lines, so that they do not appear in the console log, but I cannot change that C library. Is there any way this could be achieved?

I am aware of a similar question, which has an approved answer that recommends using MSTest instead of VSTest in this instance. However, it is not a good solution in my case, because I am moving from MSTest to VSTest and that is why I have started seeing this issue.

Community
  • 1
  • 1

0 Answers0