R# runs tests even though build fails
In some situations, I've noticed that the R# test runner for NUnit will run tests even though the solution didn't compile. In this case, it runs the tests from an older version of the assemblies, but it's not immediately obvious to you what happened. So then I end up getting confused wondering why I'm changing stuff and my tests are still failing because there's nothing to tell me that the build failed.
I've noticed this in R# 4.5 and 5 with VS2008 and VS2010.
Please sign in to leave a comment.
You need to turn of "Shadow - copy assemblies being tested" in Resharper options...
Thanks, that seems to have fixed the problem. Nevertheless, it seems like a bug that it would run tests even when the build failed, especially since the "shadow copy assemblies" checkbox is checked by default. I feel like I have to say, "Use R#, but make sure you go change this setting before you use it."
Can someone explain why I would ever want the "shadow copy assemblies" box to be checked? Is that just so that I can recompile and run the app while the test suite is running?