简体   繁体   English

ReSharper无法运行NUnit测试

[英]ReSharper failing to run NUnit tests

I am trying to get NUnit working within Visual Studio 2010, using ReSharper's test runner. 我正在尝试使用ReSharper的测试运行程序使NUnit在Visual Studio 2010中工作。 NUnit version is 2.5.10, and ReSharper's version is 5.1.3000.12. NUnit版本是2.5.10,而ReSharper的版本是5.1.3000.12。

When I try to run my tests, it throws the following error: 当我尝试运行测试时,它将引发以下错误:

Unit Test Runner failed to load test assembly: JetBrains.ReSharper.TaskRunnerFramework.TaskException: Could not load file or assembly 'file:///C:\\Documents and Settings\\Administrator\\Local Settings\\Temp\\jwgjsyeb.0ui' or one of its dependencies. 单元测试运行程序无法加载测试程序集:JetBrains.ReSharper.TaskRunnerFramework.TaskException:无法加载文件或程序集'file:/// C:\\ Documents and Settings \\ Administrator \\ Local Settings \\ Temp \\ jwgjsyeb.0ui'或以下之一它的依赖性。 The system cannot find the file specified. 该系统找不到指定的文件。

Anybody know if these versions are incompatible? 有人知道这些版本不兼容吗? According to this discussion , it they may be incompatible. 根据此讨论 ,它们可能不兼容。 If so, should I drop my version of NUnit? 如果是这样,我应该删除我的NUnit版本吗? If so, to what version, and what will I be missing out on? 如果是这样,什么版本,我将错过什么? If there's that big a difference, I may consider running my tests outside VS2010. 如果有很大的不同,我可以考虑在VS2010外部运行测试。

Or, if they should be compatible, then what other issue may be causing this? 或者,如果它们应该兼容,那么可能是什么其他问题引起的呢?

Thanks in advance. 提前致谢。

I hit this one sometime last month & got the response below from jet brains. 上个月的某个时候,我击中了这个,并得到了大脑的回应。 As you can see, the support tech says the last official supported nunit is 2.5.8. 如您所见,支持技术人员说最后一个官方支持的nunit是2.5.8。

I am actually using r#'s runner with v2.5.9.10348, although I would dearly love to see the it treated as a 1st class citizen and actually maintained to keep in synch with Nunit. 我实际上将r#的跑步者与v2.5.9.10348配合使用,尽管我非常希望看到它被视为一等公民,并且实际上保持与Nunit的同步。 I'd go off on a rant again about jet brains greedy release policy, as I did here but ... it probably wouldn't help! 我会像在这里一样,再次对喷气式飞机的贪婪释放政策大声疾呼,但是...这可能无济于事!

2.5.9 is worth a shot, like I said I use it. 2.5.9值得一试,就像我说的那样。 2.5.8, while ancient, is actually 'officially supported' in any event. 2.5.8虽然很古老,但实际上无论如何都得到“官方支持”。

Cheers, Berryl 干杯,贝里

I'm afraid that ReSharper 5.1.3 doesn't support NUnit 2.5.10 (the last 
supported version is 2.5.8 for the R#5.1.3).

ReSharper 6 EAP builds should work fine with the latest NUnit release. You 
may download the EAP builds from here: 
http://confluence.jetbrains.net/display/ReSharper/ReSharper+6.0+Nightly+Builds.
Please let me know if it helps.

Thank you.

________________________
Alex Berezoutsky,
Support Engineer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

After some trial and error, the latest version of NUnit I can get to work with ReSharper 5.1.3000.12, is NUnit 2.5.7 . 经过反复试验,我可以使用ReSharper 5.1.3000.12的NUnit的最新版本是NUnit 2.5.7

Here is the list of revisions made, starting at the latest stable build, 2.5.10. 是从最新的稳定版本2.5.10开始进行的修订的列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM