Exception running NUnit 2.6 tests

I'm trying to run unit tests with the latest NUnit 2.6 RC and R# 6.1

I've configured Resharper to use NUnit from "C:\Program Files (x86)\NUnit 2.6\bin\lib"

When running the tests I get an error dialog saying:

Unit Test Runner failed to load test assembly

System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Users\[myuser]\AppData\Local\Temp\[randomstring]\[randomstring]' or one of its dependencies. The system cannot find the file specified.

I've attached a screenshot of the dialog

I ran the Assembly Binding Log Viewer and there are two assembly binding failures:

1)

*** Assembly Binder Log Entry  (2/15/2012 @ 15:27:51) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  C:\Program Files (x86)\JetBrains\ReSharper\v6.1\Bin\JetBrains.ReSharper.TaskRunner.CLR4.MSIL.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = LOGIC\Blake.Grant
LOG: DisplayName = JetBrains.ReSharper.TaskRunnerFramework, Version=6.1.37.86, Culture=neutral, PublicKeyToken=1010a0d8d6380325
 (Fully-specified)
LOG: Appbase = file:///C:/Code/Playground/NUnitExtensibility/SimpleTests.2.6/bin/Debug
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = C:\Users\blake.grant\AppData\Local\Temp\covy2wfp.hd5
LOG: AppName = SimpleTests.2.6
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: JetBrains.ReSharper.TaskRunnerFramework, Version=6.1.37.86, Culture=neutral, PublicKeyToken=1010a0d8d6380325
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Code/Playground/NUnitExtensibility/SimpleTests.2.6/bin/Debug/JetBrains.ReSharper.TaskRunnerFramework.DLL.
LOG: Attempting download of new URL file:///C:/Code/Playground/NUnitExtensibility/SimpleTests.2.6/bin/Debug/JetBrains.ReSharper.TaskRunnerFramework/JetBrains.ReSharper.TaskRunnerFramework.DLL.
LOG: Attempting download of new URL file:///C:/Code/Playground/NUnitExtensibility/SimpleTests.2.6/bin/Debug/JetBrains.ReSharper.TaskRunnerFramework.EXE.
LOG: Attempting download of new URL file:///C:/Code/Playground/NUnitExtensibility/SimpleTests.2.6/bin/Debug/JetBrains.ReSharper.TaskRunnerFramework/JetBrains.ReSharper.TaskRunnerFramework.EXE.
LOG: All probing URLs attempted and failed.

2)

*** Assembly Binder Log Entry  (2/15/2012 @ 15:27:52) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  C:\Program Files (x86)\JetBrains\ReSharper\v6.1\Bin\JetBrains.ReSharper.TaskRunner.CLR4.MSIL.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = LOGIC\Blake.Grant
LOG: Where-ref bind. Location = C:\Users\blake.grant\AppData\Local\Temp\covy2wfp.hd5\kvwwoexo.4o2
LOG: Appbase = file:///C:/Code/Playground/NUnitExtensibility/SimpleTests.2.6/bin/Debug
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = C:\Users\blake.grant\AppData\Local\Temp\covy2wfp.hd5
LOG: AppName = SimpleTests.2.6
Calling assembly : (Unknown).
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: No application configuration file found.
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Attempting download of new URL file:///C:/Users/blake.grant/AppData/Local/Temp/covy2wfp.hd5/kvwwoexo.4o2.
LOG: All probing URLs attempted and failed.


If there is a workaround for this problem I'de love to try it as I'm relying on new features in NUnit 2.6 and would like to still use R# to run tests

Thanks!



Attachment(s):
ResharperTestRunnerError.jpg
8 comments
Comment actions Permalink

Hello Zvika
     Please try turning off the 'Shadow copy assemblies being tested' option under ReSharper | Options | Tools | Unit Testing. Let me know if this helps. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com


"Develop with pleasure!"

0
Comment actions Permalink

Hello Andrey,
I tried but I get the same error

0
Comment actions Permalink

Hi Andrey,

Is there some other fix I can use? And if not, when could we expect resharper to support NUnit 2.6?

Thanks,

Zvika

0
Comment actions Permalink

NUnit 2.6 was released just a few days ago and is not yet supported in ReSharper 6.1.1 because it was released earlier.
We are working on NUnit 2.6 support and it will be available in future releases.

0
Comment actions Permalink

Any word on the NUnit 2.6 support?  It's been about a month and a half since the last post and there's no release for this yet.  The action attributes are a killer feature.

Looking forward to seeing support soon.

        Patrick Earl

0
Comment actions Permalink

I'm also eagerly awaiting an update to ReSharper that works with NUnit 2.6.  What is your best guess on a release date?  Is there any beta testing effort I could help out with to expedite this feature's development?

0
Comment actions Permalink

I have to second the last comment. We are eagrly waiting just a ballpark date so that we can include this on our project schedule.

Thank you

0
Comment actions Permalink

Hi all,

NUnit 2.6 support is in ReSharper 7.0. You could try EAP builds now.
Due to API change between NUnit 2.5.10 and 2.6 ReSharper 6.1.1 can not run tests using NUnit 2.6

0

Please sign in to leave a comment.