
424
|
Chapter 13, Enhancing Visual Studio
#93 Run Unit Tests Inside Visual Studio
HACK
By default, Visual Studio will build all projects in a solution when executing
with the debugger. In Visual Studio .NET 2003 and Visual Studio 2005,
there is an option to “Only build startup projects and dependencies on
Run”. Checking this option can significantly improve startup times when
debugging large solutions. In Visual Studio .NET 2003, this option is under
Tools
➝ Options ➝ Environment ➝ Projects and Solutions. In Visual Studio
2005, it can be found under Tools
➝ Options ➝ Environment ➝ Projects and
Solutions
➝ Build and Run.
Test Projects and Solutions
By right-clicking on a project in the Solution Explorer window and selecting
Run Test(s), all tests within that project will be executed. Failed and ignored
Figure 13-5. Task List view
Figure 13-6. Debugger command on Test With… submenu