Can not get Resharper Test Runner working with MS Test on VS 2010

不羁的心 提交于 2019-12-01 18:55:46

问题


I have recently upgraded to VS2010 Premium and Resharper 5.1.3000.12. Its test runner will now not execute MS Tests.

The dialog shows up but nothing happens.

So when opening \Bin\Debug\TestResults .trx file, I see a list of tests reported as not executed.

They will execute fine if I click run from this dialog.

If I click to view the 'Test run error' link I see the error message:

"Failed to queue test run 'user@network date': The system can not find the file specified"

Nunit tests work fine.

Any ideas? Thanks


回答1:


Well, look like Resharper 6 does not have the issue.

http://confluence.jetbrains.net/display/ReSharper/ReSharper+6.0+Nightly+Builds

I am using build #2150 on 09 May 2011, and now the tests run as expected.




回答2:


By default resharper is configured to use shallow-copy assemblies being tested.

What you need to do is go to Resharper -> Options

From left side pane select tools -> Unit Test

Uncheck Shallow-copy assemblies being tested

Then try running, Thats working for me.



来源:https://stackoverflow.com/questions/5944111/can-not-get-resharper-test-runner-working-with-ms-test-on-vs-2010

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