I have a ‘suite’ of VS2005 unit tests that attach a db as part of the initialization. Tests modify the db fairly substantially so need to revert it to a known state before each test run.
I deploy the test db to the ‘out’ folder of each TestResult and attach it in the MyClassInitialize method.
DB is fairly large so this uses up lots of space as more and more TestResults created.
Is there any way from within Visual Studio to limit the maximum number of testresults stored? ie. stores a max of 5 + deletes oldest when hits 5?
Regards,
Matt
This works from VS2010 (from MSDN):
To limit the number of stored test runs
1.In Visual Studio, click Options on the Tools menu.
The Options dialog box appears.
2.Expand Test Tools and click Test Execution.
3.Under Test Results Management, select the number of test runs to keep.
4.Click OK.