Running Database Unit Tests

In Visual Studio, you run database unit tests by using the Test Manager window, the Test View window, or the Command Prompt window.

In This Section

  • How to: Configure Database Unit Test Execution
    Describes how you can specify settings that control how your test connects to the database that you will test, how you deploy a schema from a database project to that database, and whether you populate the database with data.
  • Running Tests
    Provides links to topics that describe how you can start to run any type of test, for example, from the Test View and Test Manager windows.
  • Command-Line Test Execution
    Provides links to topics that describe how you can use the MSTest.exe command to run tests, see test results, save results to disk, and publish results.
  • Troubleshooting Test Execution
    Describes some of the conditions that cause tests to generate errors, generate warnings, or fail to run and provides steps to resolve the problem.