NUnit tests start in wrong folders

On my new box, I did a clean install of VS 2010 and Resharper 8.2.3 Full edition. I did not work with Resharper 8 before, and never before encountered the following issue, which totally ruins my productivity: when I issue "Run All Tests from Solution" command, Resharper fails to run NUnit tests from correct project output folders.

As a result, when I run all tests from solution, tons of tests fail because they cannot find all kinds of supplementary files such as config. As a result, I have to run my tests one project at a time, which absolutely kills my productivity - I have dozens of projects with unit tests in my solution.

Should I just uninstall 8.2.3 and get Resharper 7, or is there a fix for this really nasty bug?

5 comments
Comment actions Permalink

Hello,

As a result, when I run all tests from solution, tons of tests cannot
find all kinds of supplementary files such as config.


As a guess — is shadow copying of assemblies turned on in unit testing options?
Would it help to turn it off?


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Try enabling the "Use separate AppDomain for each assembly with tests" option in ReSharper -> Options -> Unit Testing. ReSharper will try and run multiple assemblies in the same AppDomain, if it can, and this may also affect the current working directory.

0
Comment actions Permalink

No, shadow copying of assemblies is turned off.

0
Comment actions Permalink

THis suggestion helped - thanks!

BTW, when I enabled this and ran my tests, the GUI was showing that up to six test projects were running at the same time, even though I disabled running them in parall. When I added debugging output of timestamps at fixture setup and tear down, I saw that in fact assemblies were running one at a time, as configured. So there seems to be a bug in GUI.

Thanks again!

0
Comment actions Permalink

I have the same issue with Resharper 2016.1.2 and Visual Studio 11.0.61030.0.

I'm using Nunit 3.5.0.

0

Please sign in to leave a comment.