Ways to Run Database Unit Tests
You can run a database unit test in any one of several ways, which include by using various windows and the command line.
Note
You cannot run database unit tests remotely, that is, by using a test rig.
Running Database Unit Tests
The ways that are available to you depend on the software that you have installed. If you have Team Edition for Database Professionals installed, you can run tests in the following ways:
Run tests by using the Test View window. For more information, see How to: Run Database Unit Tests and How to: Run Selected Tests.
Run tests on a command line, by using the MSTest.exe command. For more information, see How to: Run Tests from the Command Line.
From Solution Explorer, run a test project. For more information, see How to: Run Selected Tests.
Re-run one or more tests by using the Test Results window. For more information, see How to: Rerun a Test.
If you have both Team Edition for Database Professionals and Visual Studio Team Edition for Testers installed, you can run database unit tests in all the ways listed for Team Edition for Database Professionals, plus the following:
Run individual tests by using the Test Manager window. For more information, see How to: Run Selected Tests.
Run test lists by using the Test Manager window. For more information, see How to: Run Selected Tests.
If you have both Team Edition for Database Professionals and Visual Studio Team Foundation Server installed, you can run database unit tests in all the ways listed for Team Edition for Database Professionals, plus the following:
- Run tests while building a project in Team Foundation Build. For more information, see How to: Configure and Run Build Verification Tests (BVTs).
If you have both Team Edition for Database Professionals and Visual Studio Team System installed, you can run database unit tests in all the ways listed for Team Edition for Database Professionals, plus the following:
Run individual tests by using the Test Manager window. For more information, see How to: Run Selected Tests.
Run test lists by using the Test Manager window. For more information, see How to: Run Selected Tests.
Run tests while building a project in Team Foundation Build. For more information, see How to: Configure and Run Build Verification Tests (BVTs).
Running Database Unit Tests in a Particular Order
To guarantee that your database unit tests will run in a particular order, you must use an ordered test. For more information, see How to: Create an Ordered Test.
See Also
Tasks
How to: Run Database Unit Tests
Concepts
Interpreting Database Unit Test Results
Terminology Overview of Team Edition for Database Professionals