VS2012 does not run unit tests

A few weeks ago I was working on unit tests, they were built and worked as expected.

I went on vacation for a week, booted up my car this morning, and without making any code changes to the unit test project, the tests were no longer running.

And when I say "tests no longer work," I do not mean that they fail; they literally will not work.

I tried to run or debug a specific test, I tried to run or debug all the tests, I tried it using the Resharper icon next to each name of the test method, I tried it from the TEST menu item, I tried it from the "Unit Test Sessions" window .. ... and all that happens is that the "Unit Test Sessions" window shifts to the right, all the tests say "Wait" ... and then nothing.

There are also no messages in the output window.

The project is built without problems. I tried to clear the solution and rebuild, but that doesn’t change anything. In addition, these are not only the tests that I worked several weeks ago, all the tests in my UnitTests project.

A colleague can perform tests. It comes across various Resharper messages that I don't have, but it can still run the test.

The only difference is that I installed the VS2012.2 update before trying to run the tests.

Does anyone have any ideas why these tests apparently won't run?

+6
source share
2 answers

I had the same problem: the updated version of Resharper 7.1.3 worked for me.

Update: I found information about the Resharper unit testing problem in VS 2012 Update 2 and that it was specifically addressed in Resharper 7.1.3: http://blogs.jetbrains.com/dotnet/2013/04/resharper-713-is-available -for-visual-studio-2012-update-2 /

+10
source

We just experienced a similar problem. The affected machine had vanilla VS2012 (professional) and Resharper 8. Fixed update VS2012 for update 4.

+2
source

All Articles