Tuesday, September 4, 2007

Delete Test Results

The test results can take up a lot of disk space if you're not careful. I had a test project where the results directory took up 4GB.

Here's how to delete the test results in VSTS:
  1. Open the test project
  2. Click Test Runs tab in the lower portion 4 tabs after output window
  3. Click the Select drop down list
  4. Select last item "Local or Connect to remote"
  5. Select 2nd radio button "Select results from local test runs" and browse if needed, but it should default to the results of the currently loaded project, and click OK
  6. Select the result from the tree
  7. Connect if needed
  8. Click the X to delete the selected test run and results
Here's the MSDN reference:

I also deleted the contents of the results directories through Windows Explorer. The results are stored in a file with a .trx extension under C:\Documents and Settings\user\My Documents\Visual Studio 2005\Projects\TestProject\TestResults (I don't know if this way is correct, but it took less time than trying to delete the result of each run through Visual Studio.)

No comments: