Search code examples
unit-testingrider

Tests session does not end Rider


I am using Rider on Mac version 2021.1.2 and what I noticed is that when I run tests UniTest window for rider, there are times when even after tests are done executing, rider does not close session and the session is on forever.

  • Clicking stop on the session does not respond
  • The only way I found to get out of this situation is to close the Rider App.

I have been using Rider for a while and I have not seen this behavior before. Attaching a screen shot for the reference[enter image description here

Is it a Rider bug or if there is anything I can do to deal with this?


Solution

  • There is a mechanism in Rider/ReSharper which detects that the test runner or dotnet process runs indefinitely due to different reasons. It shows you the following dialog in such cases:

    Still running unit test runneer

    If you don't get this dialog, check the selected options for If the ... process does not exit after settings on the Preferences/Settings | Build, Execution, Deployment | Unit Testing | Test Runner page.

    enter image description here