Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I stop the Development Server starting during Unit Testing?

I have a Visual Studio 2008 solution that contains around 30 projects. Some of these are web services / WCF services / ASP.NET MVC applications.

When I run all unit tests (Ctr+R, A) it insists on spinning up all the Development Servers for these various projects. This means that it takes far too long to run the tests and, actually, none of my unit tests require these frameworks.

So, how do I stop Visual Studio doing this?

like image 491
Chris Arnold Avatar asked Dec 09 '09 17:12

Chris Arnold


People also ask

How do you stop unit testing?

Place breakpoint in the unit test method body at the ending curly brace of the using block so that the test opens Firefox and goes to a URL but does not complete the test. Once the debugger is stopped on the break point, press the stop debugging button.

How do I stop a test execution in Visual Studio?

You need to close the Test Explorer Window to prevent automatic running.

Does unit testing speed up development?

Unit testing, TDD, and other Test-First approaches are some of the great ways to increase the development skills and get into the next level of engineering. I can help with this - I provide a training course about Test-First Development practices for groups.

Is unit testing executed by developer?

Unit Testing is typically performed by the developer. In SDLC or V Model, Unit testing is the first level of testing done before integration testing. Unit testing is such a type of testing technique that is usually performed by developers.


1 Answers

Click on the projects in your solution and bring up the properties window (F4).

Change Always start when debugging to false.

like image 86
womp Avatar answered Sep 20 '22 17:09

womp