ReSharper Unit Test Runner: Support for Deployment Items

痴心易碎 提交于 2019-11-27 06:50:32

问题


I like the Unit test runner in ReSharper 4.5, and would like to use it with my MSTest tests, but one thing annoys me:

In some of our solutions, we have set up some Deployment Items in the .testrunconfig file. The ReSharper Unit Test runner does not seem to respect this, so I get errors when trying to run the unit tests from ReSharper.

Is there any workraound for this ?

Update:

citizenmatt's answer was correct, the option to use a .testrunconfig with ReSharper exists in the Options dialog of ReSharper. You have to select the unit test provider on the list, then the controls to do that appears. (That was not obvious or discoverable, at least not for me ;-)


回答1:


Have you had a look in the Unit Testing options page? There's a setting there to allow you to use a specified test run configuration, or a test run configuration specified in a metadata file. I'm not sure what it means - I've never used it - but it sounds like it might help.




回答2:


Why not use Post-Build event of your test project? Put all your deployable items in a .BAT (.cmd) file and call it in Post-Build event to get everything deployed.



来源:https://stackoverflow.com/questions/747263/resharper-unit-test-runner-support-for-deployment-items

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