2011-06-17 180 views
1

我想讓NUnit在Visual Studio 2010中使用ReSharper的測試運行器工作。 NUnit版本是2.5.10,而ReSharper的版本是5.1.3000.12。ReSharper無法運行NUnit測試

當我嘗試運行我的測試中,它引發以下錯誤:

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. The system cannot find the file specified.

有人知道是否這些版本不兼容?根據this discussion,它們可能不兼容。如果是這樣,我應該刪除我的NUnit版本嗎?如果是這樣,到什麼版本,我會錯過什麼?如果有很大的差異,我可以考慮在VS2010之外運行我的測試。或者,如果他們應該兼容,那麼還有什麼其他問題可能導致這種情況?

在此先感謝。

回答

1

我在上個月的某個時間點擊了這個&從噴氣機腦下面得到了迴應。正如你所看到的,支持技術說最後一名官方支持的nunit是2.5.8。

我實際上使用r#的跑步者v2.5.9.10348,雖然我會深愛愛看到它被視爲一級公民,實際上保持與Nunit保持同步。我會再次喋喋不休地談論噴氣式大腦的貪婪釋放政策,因爲我做了here但是......它可能不會幫助!

2.5.9值得一試,就像我說過的那樣。 2.5.8雖然古老,但無論如何實際上都是「官方支持」的。

乾杯, 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!" 
0

經過一些試驗和錯誤之後,最新版本的NUnit I可以與ReSharper 5.1.3000.12一起工作,是NUnit 2.5.7

Here是從最新的穩定版本2.5.10開始修訂的列表。