Resharper-unity: Test Runner Hanging when using Continuous Testing

Created on 15 Jun 2020  路  4Comments  路  Source: JetBrains/resharper-unity

When running tests in Unity using the Continuous Testing, Rider often gets stuck running tests (or waiting for coverage). This is not cancellable (the cancel button does nothing), and I need to restart Rider to start testing again.

Example Screenshots:

image

image

When I try pressing "Stop Execution" nothing happens. In the screenshot the tests have been stuck since before the weekend, so it is not waiting for anything.
image

Is this a known issue? Is there anything I can supply to help debugging this issue?

Possible Explanation: It seems to happen more frequently when I change and save any file while the test is running.

Using

  • Unity 2019.4.0 with Rider Unity Plugin v2.0.5 and Unity Test Runner v1.1.14.
  • Rider 2020.1.3

All 4 comments

Do you mean tests in Unity are finished, but in Rider still waiting?
If they still run in Unity - please try to stop them there by Cancel button in the progress dialog.

The tests seem to be complete in Unity, but Rider sees them as not complete

image
image

I can reproduce this bug like this:

  1. Open a small Unity project with some editor tests. Using Unity 2019.4.0f1, and Rider 2020.1.3, and Rider Editor Unity package 1.1.4. Using macOS.
    2) Enable "Continous testing" mode "Run all tests"
    3) Do a change and save to trigger that the tests run.
    4) While the code is compiling, do another small change, but do not save yet.
    5) Wait for all tests to show status "pending" and that the Unity editor starts to prepare for running the tests (the "Test runner" window is cleared for a short time). Now hit save.
    6) Observe that the Unity editor runs the tests to completion, but the status is never updated in Rider, is is still "Pending" for all tests, and the stop button does nothing.

Thank you for the complete repro. I will look into it.
In the meantime, I can only suggest that instead of restart Rider, you can close-open solution, which would be faster.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

harryr0se picture harryr0se  路  5Comments

mihakrajnc picture mihakrajnc  路  5Comments

persn picture persn  路  3Comments

real-mikhail picture real-mikhail  路  5Comments

justinlueders picture justinlueders  路  3Comments