Designing Database Unit Tests

Like other test types built into Visual Studio Team System Test Edition, database unit tests are also integrated into Visual Studio Team System Database Edition. Using the Database Unit Test designer, you can define Transact-SQL (T-SQL) test scripts that execute database changes and then evaluate the results of those scripts against test conditions that indicate whether the test succeeded or failed. The content provided in this section explains how to create a test project, add database unit tests to that project, and finally how to add T-SQL scripts and test conditions to evaluate the results of the test scripts.

In This Section