user602182
user602182

Reputation: 139

Have mstest output my log file at a desired location

I have test that runs in mstest, everything works fine and it gives me a log file. But the log file is outputted in the TestResults folder in the project. Is there a setting I can change in mstest, which upon changing lets me output the log file to a location I desire.

If their is please advise me how to go about doing it.

Thanks in advance

Upvotes: 2

Views: 4681

Answers (1)

Andrew Cooper
Andrew Cooper

Reputation: 32586

Per mstest.exe /? there is a command-line flag you can use:

 /resultsfile:[file name]          Save the test run results to the specified
                                   file.
                                   Example:
                                     /resultsfile:c:\temp\myresults.trx

Upvotes: 7

Related Questions