简体   繁体   中英

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?

Disable the " Run Tests after Build " setting:

在Build设置后运行测试

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

My problem: I have 'Run Tests After Build' Off. Although the test cases are not running, the test discovery itself is running for minutes after every build. Below setting fixed my problem.

TestExecutionCheck

Under Test->Test Settings-> uncheck 'Keep Test Execution Engine Running'. I am using VS 2015.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM