Nunit test runner fails trying to load an assembly from AppData

I am on 5.1.1760.3.  I am using a project with NUnit 2.5.8.  I have configured the NUnit test runner to use the default installation path.  I tried this with shadow copying both on and off with the same results.  The dll does load and test fine from the NUnit GUI.  However, when I try to run the tests via resharper I get the following dialog:

Unit Test Runner failed to load test assembly
JetBrains.Resharper.TaskRunnerFramework.TaskException: Could not
load file or assembly
file:///c:\users\me\AppData\Local\Temp\ppyijgad.utc or one of its dependencies.  
The system cannot find the file specified.

The last part of the file path in AppData is different any time.  This is an empty project with just one sample test.  

Any idea what is causing this and how I can solve it?

8 comments

Hello Tom,

Could you please attach a screenshot of the message and a screenshot of Debug
| Exceptions window? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I am on 5.1.1760.3.  I am using a project with NUnit 2.5.8.  I have
configured the NUnit test runner to use the default installation path.
I tried this with shadow copying both on and off with the same
results.  The dll does load and test fine from the NUnit GUI.
However, when I try to run the tests via resharper I get the following
dialog:

Unit Test Runner failed to load test assembly
JetBrains.Resharper.TaskRunnerFramework.TaskException: Could not
load file or assembly
file:///c:\users\me\AppData\Local\Temp\ppyijgad.utc or one of its
dependencies.
The system cannot find the file specified.
The last part of the file path in AppData is different any time.  This
is an empty project with just one sample test.

Any idea what is causing this and how I can solve it?

---
Original message URL:
http://devnet.jetbrains.net/message/5279977#5279977



0

Hello Andrey,

I have attached the requested screen shots.

Exceptions window:

debugExcptionsWindow.png''
The error message:

unitTestErrorMessage.png

0

Hello Tom,

Have you tried turning off the 'Shadow copy assemblies being tested' option
under ReSharper | Options | Unit Testing? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Andrey,

I have attached the requested screen shots.

Exceptions window:

Image:debugExcptionsWindow.png ''
The error message:
Image:unitTestErrorMessage.png

---
Original message URL:
http://devnet.jetbrains.net/message/5280469#5280469



0

In the first post it says: "I tried this with shadow copying both on and off with the same results."

I'm also having this problem with both NUnit 2.5.8 and 2.5.9.

I would like to get this fixed because it seems the test runner is not properly supporting the parameterised tests from NUnit, I'm yet to whittle it down, but I'm getting only around 1/5th of the tests that nunit console produces.

0

I see the same error kind of error message (about Temp files) when trying to Run Unit Tests and using NUnit 2.5.9, but not with 2.5.7.

0

Hello Brad,

Which version of ReSharper do you use? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I see the same error kind of error message (about Temp files) when
trying to Run Unit Tests and using NUnit 2.5.9, but not with 2.5.7.

---
Original message URL:
http://devnet.jetbrains.net/message/5299269#5299269



0

I am using 5.0.1659.36 of Resharper C# Edition

0

Hello Brad,

ReSharper 5.x doesn't support NUnit 2.5.9. It will be supported in the upcoming
ReSharper 6. You can already download the early builds at http://tinyurl.com/6jrespl.
Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I am using 5.0.1659.36 of Resharper C# Edition

---
Original message URL:
http://devnet.jetbrains.net/message/5299416#5299416



0

Please sign in to leave a comment.