Search code examples
tfsazure-devopsvstestvstest.console

vstest.console.exe - Specify output file location via command line


I'm running test on vstest.console.exe. How to specify the location of results file?

vstest.console.exe [TestLocation] /Logger:trx /Platform:x64 /InIsolation /Tests:[Testname]

SOLUTION: Run tests from the folder, where I want my "TestResults" appear


Solution

  • Unfortunately, the location of result file can not be changed in vstest.console.exe command line.

    If you are using TFS, you could consider add tasks such as Copy Files in your build definition, to copy files to target folder.