Share via


How to: Delete Test Results

To save disk space, you might want to delete test results. How you delete them depends on whether they were run from within Microsoft Visual Studio 2010 or from within Microsoft Test Manager.

Microsoft Test Manager

After you run a test in Microsoft Test Manager you can choose to save the test results. If you do so, the results are associated with the test plan that contains that test.

To delete results of tests run from Microsoft Test Manager

  1. In Microsoft Test Manager, select the test plan that contains the results you want to delete.

  2. In the Testing Center, click Test, and then click Analyze Test Runs.

  3. In the list of test runs, click the run you want to delete and then click the red Delete test run icon.

Visual Studio

After you run a test in Microsoft Visual Studio 2010, results are saved automatically on your computer. How many test runs are saved depends on a setting in the Test Tools tab of the Options dialog box. If your setting allows Microsoft Visual Studio 2010 to save a lot of tests, you might want to occasionally delete some of the tests to save disk space.

To delete results of tests run from Visual Studio

  1. In Visual Studio, open the test run that contains the test results you want to delete.

    1. On the Test menu, point to Windows, and then click Test Runs.

    2. In the Test Runs window, in the Connect list, click the down arrow, and then click Connect to test run.

    3. In the Connect to Controller or Local Results dialog box, select either a remote controller or a local directory and then click OK.

      Note

      If you select a local directory, click Browse to find the correct TestResults folder. By default, results for locally run tests are saved to Visual Studio 2010\Projects\Project Name\TestResults.

  2. In the Test Runs window, select the runs you want to delete and on the Test Runs window toolbar, click Delete.

See Also

Tasks

How to: Save and Open Test Results in Visual Studio

Concepts

Running Tests