Removing standard output from the console window

I use vstest to run tests locally.

"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe\" "C:\Debug\Solution.dll /Tests:VerifyTest1,VerifyTest2 /Logger:trx"

And through the console, I get the output of something like this -

Passed   VerifyTest1
Failed   VerifyTest2
Standard Output Messages:

TestContext Messages:
1/29/2016 21:50:00  -  START  -  START : [VerifyTest2] 
   1/29/2016 21:50:00  -  INFO  -  Operating System - Microsoft Windows 10 Enterprise 
   1/29/2016 21:50:00  -  INFO  -  Test Environment - Test1 
   1/29/2016 21:50:00  -  INFO  -  Test Environment - Test1 
   1/29/2016 21:50:00  -  INFO  -  File updated 
   1/29/2016 21:50:02  -  INFO  -  Login Complete! via UI API's
   1/29/2016 21:50:03  -  INFO  -  eb481527-49f6-49bc-a9ca-9ccf4e10d12a submitted successfully.
   1/29/2016 21:50:11  -  PASS  -  Return created through UI
   1/29/2016 21:50:11  -  INFO  -  Checking Process launched or NOT
   1/29/2016 21:50:11  -  INFO  -  Process: My.CommonUIFramework.Shell is launched
   1/29/2016 21:50:11  -  INFO  -  Terminating the Process: My.CommonUIFramework.Shell
   1/29/2016 21:50:11  -  INFO  -  Checking Process launched or NOT
   1/29/2016 21:50:11  -  INFO  -  Process: My.Xion.DataMigration.UI is NOT launched
   1/29/2016 21:50:12  -  INFO  -  Launched the Application : My.CommonUIFramework.Shell
   1/29/2016 21:50:12  -  INFO  -  Checking Process launched or NOT 

Now I do not want a debug trace with all the information when the test fails on the console. I just want to get or unsuccessful result on the console. Is there any way to do this. I know that I see the result in the trx file, but I just wanted to know if there is a way to suppress debug tracing or standard output messages on the console.

0
source share
2 answers

Using MSTest instead of VSTest solved the purpose of my problem.

0
source

Source: https://habr.com/ru/post/1672475/


All Articles