Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable test discovery in visual studio 2017?

I have some solutions with a bunch of projects and we have no unit test project in these solutions. However Visual Studio 2017 is still trying to discover unit tests and slowing down our process.

https://imgur.com/a/89Vt1P6

I looked at the runsettings xml file but there was nothing in there to disable it

https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file

any idea how we turn this unnecessary stuff off for some of our solutions?

Thanks

like image 308
dan Avatar asked Apr 24 '18 00:04

dan


1 Answers

This was driving me crazy too. One day it just started running test discovery after every build, and switching my output pane to "Test" which is annoying.

How I fixed it in VS 2015 (may be the same for 2017), disable (uncheck) this setting:

Test menu --> Test Settings --> Keep Test Execution Engine Running

enter image description here

like image 123
Jay Avatar answered Oct 06 '22 22:10

Jay