Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReSharper not running new unit tests

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
like image 918
aboy021 Avatar asked May 19 '11 23:05

aboy021


People also ask

How do I run unit tests with ReSharper?

Right click on the project or solution in the VS solution-explorer and choose 'Run Unit Tests' Or go to the Resharper menu, choose Unit-Testing and choose one of the options from there.

How do I open Unit Test Explorer ReSharper?

ReSharper adds the Unit Test Explorer window to Visual Studio (ReSharper | Unit Tests | Unit Tests or ReSharper | Windows | Unit Tests, or Ctrl+Alt+U ). Using this window, you can explore and run or debug unit tests of all supported frameworks in the entire solution.


1 Answers

It also helped me to make the unit test class public :D

like image 171
Victor Sergienko Avatar answered Sep 21 '22 23:09

Victor Sergienko