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

这一生的挚爱 提交于 2019-12-30 08:05:17

问题


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?


回答1:


Disable the "Run Tests after Build" setting:

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




回答2:


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.

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



来源:https://stackoverflow.com/questions/18596819/how-to-prevent-automatic-unit-test-execution-in-visual-studio-2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!