Visual-studio – ReSharper not running new unit tests

resharperunit testingvisual studio

When I create new NUnit unit tests in my test project, the ReSharper Unit Test Runner detects them but they remain grey and are not run.

This behaviour occurs whether I try to run the tests individually or all together.

If I close and reopen the solution, the new tests are detected and run correctly.

The behaviour only occurs if I build the solution using Visual Studio before I run the tests. If I let ReSharper trigger the build, the tests are detected correctly.

I am using:

  • Visual Studio 2010
  • ReSharper
  • NUnit 2.5.7

Best Answer

Try cleaning the solution and delete RS related files and folders from your project folder. It has worked for me. I use VS2008 though.