This is the second article I am writing on unit testing SQL Server 2008 database using Visual Studio 2010. The other articles are
Unit test SQL Server 2008 - Part 1 – Focused on setting up environment, creating database project and executing simple unit tests
Unit test SQL Server 2008 - Part 3 – Focused on data generation, schema comparison, data comparison and data driven unit tests
In this article I will explore the important features that can be configured to build comprehensive database unit tests. The two assemblies that are the backbone for database unit testing are
-
Microsoft.VisualStudio.QualityTools.UnitTestFramework: This assembly is the testing framework assembly the test engine depends on when executing the unit tests. I won’t get into details of the parts of this assembly and focus on some the the important attributes that are required to execute an database unit test.
-
Microsoft.Data.Schema.UnitTesting: This assembly provides the classes required to create and execute database unit test. In this blog I’ll focus on this assembly.
In this article I’ll dig deep into these two assemblies and explore the various components of these assemblies that are used to execute unit test for a database.
I’ll start with the Database Unit Test Designer and then move on to explaining various components.
CodeProject