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.
The JUnit Test Results window should be optional, I find it annoying to see it appear (and make itself visible) whenever a JUnit test is run. I think I'm not the only one suggesting it (see "JUnit results window often reopens itself" - http://www.netbeans.org/issues/show_bug.cgi?id=76587, or "Floating window wars between JU output & all others windows" - http://www.netbeans.org/issues/show_bug.cgi?id=59883).
For release 6.0, this will not change (UI if frozen, with the exception of changes necessary for fixing of serious bugs). The subsequent comments will be about changes suggested for the future release.
This could be implemented in the JUnit module's settings. There could be e.g. the following options: When the JUnit results window should be displayed: a) until a failure is detected ( ) display the results window as soon as tests start (o) display the results window upon end of the testing session ( ) do not display the results window b) in case there is a failure detected ( ) do not change the behaviour ( ) display the JUnit results window immediately ( ) display the JUnit results window upon end of the testing session ( ) interrupt the testing session and display the JUnit results window (Some options from the second set of radio-buttons could be disabled, depending on the current selection in the first set of radio-buttons.)
Any chances to have this done with release 6.5?
Almost no chance, sorry.
The JUnit window should open only if there's a test that fails. Specifically: - if the user runs tests, the global progress indication shows that tests are running (no window open yet). - if tests finish successfully, the progress disappears (no window open). - if a test fails, the window is open. I hope this would work for majority of users. No option is necessary IMO.
*** Issue 136196 has been marked as a duplicate of this issue. ***
From lstroud (136196) >I run a lot of unit tests (many times the wrong way, when I want to see some output). The junit result panel always pops >up and annoyingly takes the focus. I would like to be able to configure the junit result panel to not show or stay >hidden. Ideally, you would be able to minimize it, it stay minimized, and see a status bar update or change in the >color of the bottom bar button to indicate results.
The JUnit pop-up window thinks it's the center of the world, and keeps on appearing in the middle of my face whenever I run JUnit tests. And keeps on appearing when I debug JUnit tests (hiding the debugger). I don't want to see it at all. I hate it. It's not for me. It gets in my way. I get upset whenever I see it. Would it be possible to disable it somehow? Would it be possible to work on this issue in the NetDev program or something? I'd love getting rid of it.
*** Issue 170955 has been marked as a duplicate of this issue. ***
Based on number of duplicates and the description this seems more like a bug then an enhancement. Jrojcek has suggested a viable solution, can we try to get this into 6.8?
Unfortunately, it won't be fixed even in 6.9
*** Bug 165881 has been marked as a duplicate of this bug. ***
We should introduce options regarding when to open test results window.
Fixed: http://hg.netbeans.org/core-main/rev/218501f98558 The proposal from comment 5 is implemented and now the test results window is only opened when there is an error or failure
BTW another API to experiment with is TopComponent.requestAttention. If called, it will make the window header blink a couple of times and then change its background to orange until user activates it (description courtesy of saubrecht). Used for windows that the user probably wants to look at sooner or later but without disrupting current activity. TRW with failures is a possible candidate.