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?
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.
You need to close the Test Explorer Window to prevent automatic running.
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.
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.
Click on the projects in your solution and bring up the properties window (F4).
Change Always start when debugging to false
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With