问题
I am trying to see what exactly vstest command is executed when I run tests in Visual Studio 2013. How can I enable vstest.console.exe logging?
回答1:
The command executed would be VSTest.Console.exe with the relevant parameters. Likely Visual Studio is calling this for you when you run tests:
VSTest.Console.exe [Path\NameOf.dll] /Logger:trx
To check if VSTest actually has a logger:
VSTest.Console.exe /ListLoggers
Write your own logger for VSTest
More about calling VSTest.Console.exe
来源:https://stackoverflow.com/questions/39367263/how-to-enable-vstest-console-exe-logging