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:
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.
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.
It also helped me to make the unit test class public :D
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With