Saving unit test results after running tests

Hi I have the same problem, the solution for me was use command console.

You need to use VSTest.console.exe located at : C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow

You should go to that location using visual studio command prompt. After that type: VSTest.console yourFullProjectPath\YourTestProject\bin\reléase\YourTest.dll /logger:trx

After completed you can find results in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\TestResults

Regards


In Visual Studio 17 you can dump test results by copying the test from Test Explorer:

enter image description here

Then, paste to some text editor:

enter image description here