This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If you run all tests for a NB module project, and use Build | Stop Building to halt it partway through, the JUnit progress handle "Running JUnit tests..." remains visible, and cannot be removed except by restarting the IDE.
Reproduced. Before I committed the source code progress bar, I tried the scenario that the process is stopped - and it worked as expected. But I always did it using action "Terminate Process" action on a node selected in the Runtime view. If I stop the build using the Stop Build/Run action, it does not work. The reason is that if I stop the process using the Terminate Process action, the JUnitAntLogger's method buildFinished(...) gets called. If the process is terminated using the Stop Build/Run action, the method does not get called. I am affraid I cannot fix unless buildFinished(...) gets called. Jesse, if I understand correctly, you participated in both the actions for stopping processes ("Terminate Process" and "Stop Build/Run"). Is it correct that buildFinished(...) does not get called?
I only used Stop Build/Run. I have noticed however that it sometimes works. SBR can work in one of two ways: 1. If some Ant event occurs within 3 seconds (I think), a BuildException is thrown, which should cause the build to halt. 2. Otherwise, Thread.stop is called, generally interrupting the running task. So the difference may depend on how long an individual test takes to run. Not sure if buildFinished is called in case #2.
This bug was caused by bug #82160 which was just fixed so I mark this bug as fixed, too. Tested on a custom build 060811.