简体   繁体   中英

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

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

If anyone is looking for where the test log file is located, its stored in C:\Users\my-user\AppData\Local\Temp\VsTempFiles

右击实际测试,可以打开日志文件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM