TestDriven.NET RC2: Test With... Debugger

Kevin Driedger - When debugging a Test using NUA it recompiles the whole solution not just the projects that the test is dependant on. Currently I am working around this problem by adding a configuration in the solution that only includes the dependant projects. Unfortunately, vs.net takes a quite a while to switch profiles.

When TestDriven.NET executes a test, it first builds the test project and any dependencies. It then executes the test using the chosen test runner (in this case the debugger). Unfortunately when executing with the debugger attached, Visual Studio defaults to building all projects in the solution. This was causing a full build to be done after the partial (project and dependencies) build.

I'm now delegating build responsibilities to the project runner when executing with debugger. This means the test project will only be built once. Unfortunately Visual Studio still defaults to doing a full build (which can be very slow on large solutions). In Visual Studio 2003 and 2005 where is an option to, "Only build startup projects and dependencies on Run". I have a couple of screen grabs showing where to find this under 'Test With... Debugger' on the QuickStart.

You will find this fix in TestDriven.NET RC2

1 Comment

Comments have been disabled for this content.