开发者

Running setup and cleanup scripts in Resharper for MSTest

开发者 https://www.devze.com 2023-04-04 19:08 出处:网络
I have tests running with MSTest. I use the .testsettings to run setup and cleanup scripts, needed to execute tests well.

I have tests running with MSTest. I use the .testsettings to run setup and cleanup scripts, needed to execute tests well.

We recently bought licenses for Resharper, and I'm trying to run the same tests using the test sessions in Resharper. Unfortunately,m most of them fail because setup and cleanup scripts are not executed correctly. For each script th开发者_运维技巧e path is relative to the location of the .testsettings file, and in resharper I configured tests to run from that directory.

Any help appreciated

Thanks


Remove your .testsettings dependencies and let your tests set up their dependencies in code. Resharper testrunner, and your tests in general, works better if everything is done in code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号