Unit Test Runner failed to load test assembly

Getting the error below when trying to run MSTest tests in ReSharper:

[Window Title]ReSharper Test Runner
[Main Instruction]Unit Test Runner failed to load test assembly
[Content]System.TypeLoadException:
Method 'get_SolutionDirectory' in type 'JetBrains.ReSharper.UnitTestRunner.MSTest.RunContext' from assembly 'JetBrains.ReSharper.UnitTestRunner.MSTest11.Impl, Version=7.0.1098.2760, Culture=neutral, PublicKeyToken=1010a0d8d6380325' does not have an implementation.[^]  
[Buttons]   [Header=_OK, Content=]
[Expanded Information]   
at JetBrains.ReSharper.UnitTestRunner.MSTest11.Impl.MsTest11Runner.Run(IRemoteTaskServer server, TaskExecutionNode node)  
at JetBrains.ReSharper.UnitTestRunner.MSTest.MsTestTaskRunner.ExecuteRecursive(TaskExecutionNode node)   
at JetBrains.ReSharper.TaskRunnerFramework.CurrentAppDomainHost.Execute(TaskExecutionNode node)

Any suggestions?Thanks,Radu

0
8 comments

Hello Radu,

1. Is it a solution specific issue, or does it affect all Unit Tests you're trying to run?
2. What is the OS you use? Is it 32-bit or 64-bit?
3. What is the platform configuration for your solution/projects? Is it x86, x64 or 'Any CPU'?

Thanks!

0

Radu, it's known problem and you're welcome to try out the latest R# 7.1 EAP build from http://confluence.jetbrains.net/display/ReSharper/ReSharper+7.1+Nightly+Builds
Let me know if it helps you. Regards!

Kirill Falk
.NET Team QA Lead
Jet Brains, Inc

0

I experienced this problem in 7.0.  After upgrading to 7.1, it went away for me.  

0

Hello Josh,

Thank you for lettting us know! Great that it's now working fine for you!

0

This same error occured on my machine only after installing the recent Visual Studio 2012 update 1.

I've updated to Resharper 7.1.25.234 and the error seems to be fixed

Edit: answered questions
1. Is it a solution specific issue, or does it affect all Unit Tests you're trying to run?
     It affects all unit tests, the bug seems to reside in the test runner itself
2. What is the OS you use? Is it 32-bit or 64-bit?
    Windows 8 Enterprise, 64-bit
3. What is the platform configuration for your solution/projects? Is it x86, x64 or 'Any CPU'?
    Any CPU

0

ReSharper 7.1 is known to fix this issue.

0

The issue is still happening for me, and I'm on Version 7.1.25.234.

-- Rob

0

i still get the same issue.
Unit Test Runner failed to run tests.
System.IO.FileNotFoundException. The file or assembly Microsoft.VisualStudio.TestTools.UITesting coulnd found.
BUT I ALREADY HAVE INCLUDED IT >_< didnt know.

0

Please sign in to leave a comment.