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

后端 未结 2 1858
悲&欢浪女
悲&欢浪女 2021-01-11 10:09

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?

2条回答
  •  悲哀的现实
    2021-01-11 10:38

    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.

提交回复
热议问题