Unit test runner fails with error 'failed to load nUnit26Generated assembly'

If I select to run all tests in my solution (about a dozen test assemblies) ReSharper runs 2-3 of the assemblies, then stops and marks the rest as "Inconclusive: Test not run". The log contains one error when this happens:

System.IO.FileNotFoundException: Could not load file or assembly 'JetBrains.ReSharper.UnitTestRunner.nUnit26Generated, Version 0.0.0.0'

That file is not one of mine but rather sounds like something that JetBrains generates during the test run.

If I run the tests in one assembly at the time everything works fine. The error only occurs if I select multiple/all assemblies

I've tried clearing the cache but that didn't make any difference. Also tried disabling shadow copy but that didn't make any difference either.

Using version 2016.3.2 in Visual Studio 2015

Any ideas?

Thanks

0
2 comments

Hello Claes!

 

Thank you for contacting us.

Could you please try the latest ReSharper 2018.1.2 and check if the problem is still reproduced?

Thank you.

0
Avatar
Permanently deleted user

Hi Angelina

Unfortunately upgrading is not an option. Being in the corporate world, software approval (even an upgrade) is a very long process that's mostly outside my control.

The problem only started yesterday though so I'm guessing something happened to my machine. I will try to upgrade our unit tests to nUnit 3 and see it that helps (or a reinstall of ReSharper)

Thanks

0

Please sign in to leave a comment.