Introducing Visual Studio Team System 2008 Database Unit Testing
Running the Test
There are a number of ways to manage and run groups of tests. A complete review is beyond the scope of this article. I'm going to use the Test List Editor to run the tests. Test List Editor can be found on the Test menu located under Windows selection as shown in Figure 15.
The Test List Editor appears in Figure 16.
Figure 16: Test List Editor
You can choose to run tests individually or in groups. After you invoke the test you'll get results pictured like the list shown in Figure 17.
Figure 17: Test Run results
Unit Testing is now firmly entrenched in Visual Studio Team System. Even database developers can take advantage of Unit Testing. Unit Test project features work like other Visual Studio and Visual Studio Testing features.
- Advanced article on how to build custom test conditions, plus additional resources: http://msdn.microsoft.com/en-us/magazine/cc164243.aspx
- Unit Testing Basics, C# example: http://msdn.microsoft.com/en-us/library/ms379625(VS.80).aspx
- Definition: http://en.wikipedia.org/wiki/Unit_test
Download the Code
You can download the code that accompanies this article here. (It is a large file.)
About the Author
Jeff Juday is a software developer specializing in enterprise application integration solutions utilizing BizTalk, SharePoint, WCF, WF, and SQL Server. He has been developing software with Microsoft tools for more than 15 years in a variety of industries, including military, manufacturing, financial services, management consulting, and computer security. Jeff is a Microsoft BizTalk MVP. Jeff spends his spare time with his wife Sherrill and daughter Alexandra. You can reach Jeff at firstname.lastname@example.org.
Page 5 of 5