Unble to rename Test results (.trx) generated from VSTest.console.exe

299 views Asked by At

I am trying to set name and file location for my Test results (.trx) generated from VSTest.Console.exe from console line but looks like its not working.

If I run below command, "c:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "MyTest.dll" /UseVsixExtensions:"true" /InIsolation /Logger:"trx"

It copies test results in below default location,

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\TestResults{user-name}{machine-name}{datetime}.trx

In order to avoid this default location and name for test results, when I specify output path in logger it gives below error:

Error: Could not find a test logger with URI or FriendlyName 'C:\UnitTest\MyResults.trx'.

Below is the command I am using,

"c:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "MyTest.dll" /UseVsixExtensions:"true" /InIsolation /Logger:"C:\UnitTest\MyResults.trx"

Let me know where I am going wrong.

0

There are 0 answers