Test output directories not being deleted

 

Hi,

I've noticed that there are lot's of directories (~1500) under my project directory named like:

"FinalBuilder_LOOKFINALBUILDE 2010-09-09 10_31_06"

I believe that these are generated by mstest and it is not removing the directories after the tests are run.

This issue is compounded by the fact that we run each of our test assemblies individually so that we run

all tests regardless of failure (we trigger failure at end if any tests failed). This has consumed ~50gb which resulted

in our server machine running out of disk space.

Am I correct? Is mstest responsible? Is there a way determining the folder name during the build so I can delete it manually myself?

Thanks,

Simon Kennedy


Apparently the copy behaviour (default) can be turned off (I believe in our case it should not be an issue) however it requires a .testrunconfig.

Anyone know what that config file would look like? I’m having hard time finding information about it’s contents, I have no idea what the parameter is called or where in the configuration it should be.

Sucks that it’s not an option on the command line.

Thanks,

Simon Kennedy


Ok, figured it out.

I added a 'Define XML document' action that has this fixed text:
<?xml version="1.0" encoding="UTF-8"?>

<?xml version="1.0" encoding="UTF-8"?>This is a default test run configuration for a local test run.


I then use a 'Save XML document' action that writes to 'LocalTestRun.testrunconfig' and gets included in all mstest actions.

This successfully stops the test assemblies, and dependencies, from being copied to a separate directory.

The weird thing is that it still generates the directory but now it deletes it automatically! WTF?

I deleted ~100gb of test folders from a ~126gb drive, crazy!

 

Hi Simon

Nicely done! Do you have any links you can share with info on the config file?


The link that helped the most is this: http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/f8d749f5-1612-4fd0-909d-d8c8456fbc08