Community
Participate
Working Groups
M2: (This is probably a platform bug but ...) Normally the JUnit view updates each test with a pass/fail decoration as the tests progress. With M2 I am quite frequently seeing that some of the icon decoration updates have got lost. For instance I can open a test suite that reports that it and its predecessors are still to do, but discover that the tests have actually run (the per-test decorations are correct). The "Runs" counts seem to update correctly, so the problem seems to be just one of decorator refresh.
Can you provide a screenshot next time you encounter the issue? I used Eclipse Version: 4.4.0 Build id: I20131015-0800, executed AllRefactoringTests multiple times but couldn't reproduce the issue. Is it always reproducible at your end, if so provide us the details or attach a sample testsuite so that it can be reproduced at our end.
Sorry. It's thoroughly unreproducible. Hence.... (In reply to Ed Willink from comment #0) > M2: (This is probably a platform bug but ...) The platform has so many unpredictable activate/refresh issues that it's difficult to report anything useful. [The missing decorations appear after a suitable refresh, so it's definitely a display bug.]
Ed, can you give a bit more details: - you mean the decorations of the elements, not the view icon, right? - is the JUnit view open in your workbench window as view or as fast view, or in another window, or detached? - by "open a test suite", you mean expand the node in the view?
(In reply to Dani Megert from comment #3) > Ed, can you give a bit more details: > - you mean the decorations of the elements, not the view icon, right? Yes (the 8x8 green tick icon overlaying the node icon at bottom left) > - is the JUnit view open in your workbench window as view or as fast view, > or in > another window, or detached? As a view in multiple perspectives. (In the horizontal Search/Error LOg/Tasks/... area.) > - by "open a test suite", you mean expand the node in the view? Yes expand to show the results of each test.
(In reply to Ed Willink from comment #4) > (In reply to Dani Megert from comment #3) > > Ed, can you give a bit more details: > > - you mean the decorations of the elements, not the view icon, right? > Yes (the 8x8 green tick icon overlaying the node icon at bottom left) > > - is the JUnit view open in your workbench window as view or as fast view, > > or in > > another window, or detached? > As a view in multiple perspectives. (In the horizontal Search/Error > LOg/Tasks/... area.) > > - by "open a test suite", you mean expand the node in the view? > Yes expand to show the results of each test. And one additional question: could it be that you see this when rerunning a test/tests?
(In reply to Dani Megert from comment #5) > And one additional question: could it be that you see this when rerunning a > test/tests? Certainly possible, but probably both. The typical scenario is that my tests go a bit slow after about 75% (garbage collection issues) and decorations stop updating. It is only when I probe to see why no progrees is being made that I started to notice it was a decoartion issue. I can open an undecorated test suite at say 90%, and see that the individual tests are decorated; the parent also acquires a decoration because of the refresh, but its predecessors may remain undecorated.
Created attachment 236936 [details] Screenshot of missing test suite decorations Test was first launch after starting Eclipse.
I can easily reproduce when I run a test suite directly after starting Eclipse, when it's still busy decorating other images (also in other views). I'm pretty sure that the fix for bug 416354 surfaced this issue in the decoration manager. I've reverted that change so that I can verify my theory in the next build.
Verified in I20131029-2000 that this fixes the problem.