TestCentric / testcentric-gui

TestCentric GUI Runner for NUnit
Other
66 stars 31 forks source link

Crash: Start test run using context menu while test is running #1130

Open rowo360 opened 3 hours ago

rowo360 commented 3 hours ago

Describe the bug When a test run is started all toolbar buttons like 'Run all' or 'Run selected' are disabled until the test run is finished. However the context menu entry 'Run' is still enabled.

To Reproduce Steps to reproduce the behavior:

  1. Load a project and start a test run Important: the tests should run slow, so that there's enough time to execute the next steps before this run is finished.
  2. Open tree context menu and select 'Run'
  3. Crash

Expected behavior I believe the context menu entry 'Run' should be disabled while a test is running. That's the identical behavior to all those toolbar buttons.

Screenshots

Environment (please complete the following information):

rowo360 commented 3 hours ago

The actual crash is happening from the progress bar! Somehow it get confused by the number of tests in the test run and the maximum value. I didn't look to the details here, because I think we should stop this use right from the start and disable the context menu in this case. Probably the 'Debug' context menu entry should be disabled as well.