Running Tests
From the Test Manager window and the Test View window, you can start to run any type of test. But for certain test types, the way you continue to run the test can vary. For more information about how to run these specific test types, see the following topics:
Web tests: How to: Run a Web Test
Load tests: Running Load Tests
Manual tests: How to: Run a Manual Test
You can also run most kinds of tests from a command line. For more information, see Command-Line Test Execution.
In This Section
- How to: Run Selected Tests
Describes the various ways to run single tests, multiple tests, and test projects.
- How to: Pause, Resume, and Stop a Test Run
Describes how to use the Test Results window to control a test run that is underway.
- 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.
- How to: Schedule Test Runs
Describes how to use Windows Task Scheduler to create and schedule a task that runs tests.
- How to: Find and View Test Runs
Describes how to find test runs that were run locally or remotely and view their results.
- Test Deployment
Provides links to topics that describe how tests are deployed before they are run, how to configure test deployment, and how to instrument and re-sign assemblies.
- Troubleshooting Test Execution
Describes problems that prevent tests from running and other errors that you might encounter.
- Configuring Test Execution
Describes how to use test run configurations to change how tests are run, including how to gather code-coverage information and how to specify a test host.
- Command-Line Test Execution
Provides links to topics that describes how to use the MSTest.exe program to run tests from a command line, see test results, save results to disk, and publish results.
- Guidelines for Smoke Testing
Provides advice about the concept of smoke testing, the process of validating code changes before the changes are checked into a product's source tree.
Related Sections
- Managing Tests
Describes aspects of working with tests, including how to customize and filter test views, how to work with test lists, and how to associate tests with work items.
- Test Results and Analysis
Describes test results and ways to work with them, including how to view, save, and publish them and how to create bugs from them.
- Creating Unit Tests
Provides links to topics about generating and authoring unit tests, including ASP.NET unit tests and data-driven unit tests.
- Working with Controllers, Agents, and Rigs
Describes how to set up and administer computers for running tests remotely and for generating simulated test loads.
See Also
Tasks
Walkthrough: Creating and Running Unit Tests
Walkthrough: Using the Command-line Test Utility
How to: Obtain Code Coverage Data