We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

Obtaining Test Results

Running a test automatically produces test results, saves them to disk, and displays results summaries in the Test Results window. Code-coverage information is also a form of test result, but you must configure test runs to obtain it; for more information, see How to: Obtain Code Coverage Data.

Test Results Reported

Describes the kinds of test results that are reported for the various test types, and the pages of the Visual Studio IDE on which those results are displayed.

Basic Test Results

Describes how running a test produces a result and then displays it in the Test Results window.

How to: Adjust Test Results Views

Describes how to change the display of the Test Results window.

How to: View Test Results Through a Build Report

Describes how to find published test results in the Team Builds folder in the Team Explorer window and download the results to your computer.

How to: Obtain Code Coverage Data

Describes how you can measure the effectiveness of tests on a line-by-line or even a block-by-block basis by configuring test runs to produce code coverage information.

How to: Create a Work Item from a Test Result

Describes how to use the Test Results window to create a bug directly from a test result.

How to: Merge Code Coverage Data

Describes how to merge code coverage data that was gathered during multiple test runs.

Working with Merged Code Coverage Data

Describes how to export and import merged test results, how to merge data from ASP.NET test results, and how to import code-coverage data files.

Saving and Publishing Test Results

Describes how to automatically save a test results to your computer's hard disk when you run tests.

How to: Rerun a Test

Describes how to repeat a test run. You can repeat a test run, for example, after having changed the code being tested, the code of the test methods, or the active test run configuration.