Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSTest - How to limit test result folders

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?

like image 926
puri Avatar asked Aug 08 '12 12:08

puri


1 Answers

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. enter image description here
like image 194
RB. Avatar answered Oct 16 '22 06:10

RB.