Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent automatic unit test execution in Visual Studio 2012?

Every time I compile my solution the unit-tests start to run in background as I see in the Test Explorer.

Is there any configuration to prevent VS from doing that?

like image 508
Maxolidean Avatar asked Sep 03 '13 16:09

Maxolidean


People also ask

How do I stop a test execution in Visual Studio?

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

How do you stop a test runner?

Stop tests Use the following options on the Run toolbar of the Test Runner tab: Click. or press Ctrl+F2 to terminate the process immediately.

How do I automate unit testing in Visual Studio?

To generate unit tests, your types must be public. Open your solution in Visual Studio and then open the class file that has methods you want to test. Right-click on a method and choose Run IntelliTest to generate unit tests for the code in your method. IntelliTest runs your code many times with different inputs.


1 Answers

Disable the "Run Tests after Build" setting:

Run Tests after Build setting

Source: http://tfs.visualstudio.com/en-us/learn/run-a-unit-test-after-build-in-vs.aspx

like image 82
Pablo Romeo Avatar answered Sep 18 '22 21:09

Pablo Romeo