Configuring Your Test Project Host

A common scenario is to have a separate unit test project for working with your website. This project can focus on tests specifically related to the functions of your site. You can create additional test projects to work with other code libraries. This type of separation makes the writing and running of unit tests a more straightforward process.

You can also configure your test project settings to be specific to your host. In this way, you do not have to define the many ASP.NET attributes on each unit test. Instead, you can configure your .testsettings file to work with a specific host by double-clicking your .testsettings file (Solution Items, Local.testsettings). This opens the Test Settings dialog box as ...

Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.