How to: Pause, Resume, and Stop a Test Run
Although you can start tests in several ways and from various windows, you use the Test Results window to control a test run that is underway.
To pause a test run
While a test run is underway, click Pause on the Test Results window toolbar.
This temporarily stops the test run at its current location. The order of tests in the test run is unaffected, as are results from any tests in the current test run that have already been completed.
Note
Pausing a test does not stop a test that is currently running; it keeps the test run from moving on to the next test in the list.
Resume a test run
While a test run is paused, click Resume Test Run on the Test Results window toolbar.
The test run resumes where it was paused.
Stop a test run
While a test run is underway, click Stop on the Test Results window toolbar.
This stops the test run at its current location. The test being run is completed, but no additional tests are run. Results from any already completed tests in the current test run are retained. The status of the test that was running when you clicked Stop changes to Aborted. The status of tests that have not yet completed changes from Pending to Not Executed.
The test run can be rerun from the start, but not resumed from where you stopped it.
See Also
Tasks
How to: Run Automated Tests from Microsoft Visual Studio
How to: Debug while a Test is Running
Walkthrough: Creating and Running Unit Tests