Visual Studio 2010 does not discover new unit tests

二次信任 提交于 2019-12-02 17:52:11

I finally figured out the problem. In Options under Test Tools -> Test Project, there is an option "Disable background discovery of test methods". It was turned on - I do not know how that happened, but removing the checkmark and restarting Visual Studio solved the problem.

I've had this problem as well when building in debug mode. When I switched it to build in release mode that fixed it for me.

Cookie

I had a similar problem in Visual Studio 2012, however none of the solutions worked. I am developing a 64 bit application and the solution was to choose:-

Test -> Test Settings -> Default Processor Architecture -> X64

I've had this issue and option 2 below fixed it for me.

  1. Remove any app.config file (not sure why, but one of the MS forums has a few of these posts with this solution) and

  2. Ensure that within the configuration properties of the solution the project is set to build!!

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