简体   繁体   中英

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

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

在此处输入图片说明

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