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? 回答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.