MSTest - How to limit test result folders

会有一股神秘感。 提交于 2019-11-29 16:28:30

问题


Every time an MSTest runs it creates a new time stamped folder inside of TestResults. This can result in many files/folders that take up hard drive space.

Is there a way to configure MSTest to overwrite the contents of the TestResults folder so that is only contains results from the most recent run?


回答1:


You can limit the number of stored test-runs to 1, which should meet your requirements.

MSDN have an article on how to achieve this:

  • In Visual Studio, click Options on the Tools menu.
  • The Options dialog box appears.
  • Expand Test Tools or Web Performance Test Tools and click Test Execution
  • Under Test Results Management, select the number of test runs to keep.
  • Click OK.


来源:https://stackoverflow.com/questions/11864721/mstest-how-to-limit-test-result-folders

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!