Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #474132 +++
Not sure if that work is still open nor not. From a quick look the plug-in has been updated. Adding Paul and Rolf, which looked at some of the tests recently.
There is still plenty of work to do. The UI-Session Tests.launch is configured to run with JUnit 3. The other launches use JUnit 4. Apart from that there are still some JUnit 3 suites (extends TestSuite) and any test which extends UITestCase and is not annotated with @RunWith(BlockJUnit4ClassRunner.class) is run as JUnit 3 test. Btw: I would suggest to inherit every test class from UITestCase to archive a consistent logging.
Instead of inheritance I would prefer a utility class with a log method.
Which must explicit called in every test class therefor all need an own setup and teardown method. Have not checked it but I'm quite sure the vast majority of tests is already a child of UITestCase.
A custom Junit rule should do the trick.
(In reply to Lars Vogel from comment #5) > A custom Junit rule should do the trick. Why tricks, if extending a base class is most natural way to inherit common behavior?
Thanks to the JUnit4 way of life a Rule is necessary anyway so the different between inheritance and Rule per class is rather small. I created a separate bug 546756 since the logging stuff refers mostly (or only) to JUnit4 tests.
New Gerrit change created: https://git.eclipse.org/r/151367
New Gerrit change created: https://git.eclipse.org/r/151401
Gerrit change https://git.eclipse.org/r/151367 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=0cc0378238a8feb4d249003c04949da575732725
Gerrit change https://git.eclipse.org/r/151401 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=805fa8bcab6d29cd30a95afa2ca79d5e0a27ced8
I think this is done. Thanks, Rolf.
This is not even close to being fixed, almost all of the test cases still run with the JUnit3 runner.
New Gerrit change created: https://git.eclipse.org/r/153133
New Gerrit change created: https://git.eclipse.org/r/153134
New Gerrit change created: https://git.eclipse.org/r/153138
Gerrit change https://git.eclipse.org/r/153133 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=abd2ea157387c7a42ff133e5153dd7de1483797b
Gerrit change https://git.eclipse.org/r/153138 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=28409e60f48c3b265478fd8013909fe3642a075a
New Gerrit change created: https://git.eclipse.org/r/153197
New Gerrit change created: https://git.eclipse.org/r/153610
New Gerrit change created: https://git.eclipse.org/r/153611
New Gerrit change created: https://git.eclipse.org/r/153612
New Gerrit change created: https://git.eclipse.org/r/153613
New Gerrit change created: https://git.eclipse.org/r/153614
New Gerrit change created: https://git.eclipse.org/r/153615
New Gerrit change created: https://git.eclipse.org/r/153617
New Gerrit change created: https://git.eclipse.org/r/153619
Gerrit change https://git.eclipse.org/r/153134 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=a6bb1f4cc77f9a10e5a5bc06841bbf8d78fbe361
Gerrit change https://git.eclipse.org/r/153197 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=4e9a40e4f46fd4d8a484d0925f4789c5f25519c3
About another 20 test-suites need to be migrated, I don't think this will be finished for 4.14. If anyone has some time left, feel free to help.
New Gerrit change created: https://git.eclipse.org/r/153621
New Gerrit change created: https://git.eclipse.org/r/153622
New Gerrit change created: https://git.eclipse.org/r/153623
This migration cannot be finished completely for 4.14. The org.eclipse.ui.tests.session.SessionTests depend on support from SessionTestSuite, which do not provide a JUnit4 counterpart yet. See Bug 553648.
New Gerrit change created: https://git.eclipse.org/r/153932
New Gerrit change created: https://git.eclipse.org/r/153931
New Gerrit change created: https://git.eclipse.org/r/153935
New Gerrit change created: https://git.eclipse.org/r/153934
New Gerrit change created: https://git.eclipse.org/r/153933
(In reply to Rolf Theunissen from comment #34) > This migration cannot be finished completely for 4.14. > The org.eclipse.ui.tests.session.SessionTests depend on support from > SessionTestSuite, which do not provide a JUnit4 counterpart yet. See Bug > 553648. The SessionTests are not part of the main UiTestSuite, therefore moving that migration to a separate bug, Bug 553838.
Gerrit change https://git.eclipse.org/r/153610 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=e731d765b2eb56a21e623c501c94836e0fb676ae
Gerrit change https://git.eclipse.org/r/153611 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=8cb0c53c34231d530e474b9085f203c06ac735bf
Gerrit change https://git.eclipse.org/r/153612 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=e489b7aa327c3d9d1b17ac83b3ef413f600dd905
Gerrit change https://git.eclipse.org/r/153614 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=296a5219a0bfd3ed7a25170f73b5f472d4e63547
Gerrit change https://git.eclipse.org/r/153617 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=7158ca7f7505fccd54c0db6300f143edc216fd99
Gerrit change https://git.eclipse.org/r/153613 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=28137b1adb6345cb9c6b882654334cb8bc38f4a4
Gerrit change https://git.eclipse.org/r/153619 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=b9e40397ae37e3faeb4c29736041f2c9e7c37400
Gerrit change https://git.eclipse.org/r/153621 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d7140119a9ced435cff9eaf653428a5550b36427
Gerrit change https://git.eclipse.org/r/153622 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=f1f1477accb418228e6c5a1840cbdee3d08c8e27
Gerrit change https://git.eclipse.org/r/153932 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=6c215b1ca819b0eef12a506c479dfc2fecf2b6b8
Gerrit change https://git.eclipse.org/r/153931 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=b67f32d09cbf56af700af5fa8d843fba9381ae56
Gerrit change https://git.eclipse.org/r/153933 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=519293342e021ffb100c3b4cbb309af62144799c
Gerrit change https://git.eclipse.org/r/153934 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=b99e5549d4b691fa43732ded1ea4f0eb773eaa15
Rolf, die you received mail from Sarika about closed master branch?
Gerrit change https://git.eclipse.org/r/153623 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=5f7ba651408a274757c9aaeaa2e750bae3d48cd1
Gerrit change https://git.eclipse.org/r/153615 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=3370a30e0b7f349fe19832e662a15a5ed04f27d9
(In reply to Andrey Loskutov from comment #54) > Rolf, die you received mail from Sarika about closed master branch? Last mail I got from Sarika related to development is from December 1st, stating: 'Ongoing changes to documentation, tests or examples do not require approval.' Noting about a closed master branch
(In reply to Rolf Theunissen from comment #57) > (In reply to Andrey Loskutov from comment #54) > > Rolf, die you received mail from Sarika about closed master branch? > > Last mail I got from Sarika related to development is from December 1st, > stating: > 'Ongoing changes to documentation, tests or examples do not require > approval.' > > Noting about a closed master branch Correction, mail from Noopur today. You should really subscribe to platform-releng-dev@eclipse.org, see https://www.eclipse.org/lists/platform-releng-dev/msg35314.html.
(In reply to Andrey Loskutov from comment #58) > (In reply to Rolf Theunissen from comment #57) > > (In reply to Andrey Loskutov from comment #54) > > > Rolf, die you received mail from Sarika about closed master branch? > > > > Last mail I got from Sarika related to development is from December 1st, > > stating: > > 'Ongoing changes to documentation, tests or examples do not require > > approval.' > > > > Noting about a closed master branch > > Correction, mail from Noopur today. > You should really subscribe to platform-releng-dev@eclipse.org, see > https://www.eclipse.org/lists/platform-releng-dev/msg35314.html. These kind of announcements should not (only) go to platform-releng-dev they should go to platform-dev and/or eclipse-dev (with I do have a subscription on)
(In reply to Rolf Theunissen from comment #59) > These kind of announcements should not (only) go to platform-releng-dev they > should go to platform-dev and/or eclipse-dev (with I do have a subscription > on) +1, such emails should be send to all relevent email lists, similar to our milestone emails.
(In reply to Rolf Theunissen from comment #57) > Noting about a closed master branch (In reply to Lars Vogel from comment #60) > (In reply to Rolf Theunissen from comment #59) > > These kind of announcements should not (only) go to platform-releng-dev they > > should go to platform-dev and/or eclipse-dev (with I do have a subscription > > on) > > +1, such emails should be send to all relevent email lists, similar to our > milestone emails. Yes, that got lost in the RC2 reminder, BUT, master is/was ALWAYS closed after Wednesday in the milestone/RC week. So, everyone, please try to remember this, even if Releng forgets to mention it in the reminder that's sent out to all the mentioned lists.
(In reply to Dani Megert from comment #61) > (In reply to Rolf Theunissen from comment #57) > > Noting about a closed master branch > (In reply to Lars Vogel from comment #60) > > (In reply to Rolf Theunissen from comment #59) > > > These kind of announcements should not (only) go to platform-releng-dev they > > > should go to platform-dev and/or eclipse-dev (with I do have a subscription > > > on) > > > > +1, such emails should be send to all relevent email lists, similar to our > > milestone emails. > Yes, that got lost in the RC2 reminder, BUT, master is/was ALWAYS closed > after Wednesday in the milestone/RC week. So, everyone, please try to > remember this, even if Releng forgets to mention it in the reminder that's > sent out to all the mentioned lists. These kind of things are very hard to remember, especially when you don't deal with them every day. Even old timers like Lars (sorry to mention you) struggle with this, as can be seen in one of the Gerrit review messages. If possible, it would be really nice if these kind of rules are enforced by the tools. Git has hooks that could prevent any commit from going in.
(In reply to Rolf Theunissen from comment #62) > (In reply to Dani Megert from comment #61) > > (In reply to Rolf Theunissen from comment #57) > > > Noting about a closed master branch > > (In reply to Lars Vogel from comment #60) > > > (In reply to Rolf Theunissen from comment #59) > > > > These kind of announcements should not (only) go to platform-releng-dev they > > > > should go to platform-dev and/or eclipse-dev (with I do have a subscription > > > > on) > > > > > > +1, such emails should be send to all relevent email lists, similar to our > > > milestone emails. > > Yes, that got lost in the RC2 reminder, BUT, master is/was ALWAYS closed > > after Wednesday in the milestone/RC week. So, everyone, please try to > > remember this, even if Releng forgets to mention it in the reminder that's > > sent out to all the mentioned lists. > > These kind of things are very hard to remember, especially when you don't > deal with them every day. Even old timers like Lars (sorry to mention you) > struggle with this, as can be seen in one of the Gerrit review messages. > If possible, it would be really nice if these kind of rules are enforced by > the tools. Git has hooks that could prevent any commit from going in. If the emails don't say it's closed, it is not closed. As rules are constantly changing there is nothing to remember. And we always had such emails, that I remembered. :-) Thanks Rolf for considering me as an old-timer, I still think if myself as a newcomer, still in rebellion against certain established practices. ,;-(
More serious we can not expect that people contributing in their free time like Rolf and me remember all rulers, so the email should be clear.
(In reply to Lars Vogel from comment #64) > More serious we can not expect that people contributing in their free time > like Rolf and me remember all rulers, so the email should be clear. Sure, this was just an omission by the Releng person and that can happen. Also, anyone did not point to anyone or asked to revert the unexpected changes.
Gerrit change https://git.eclipse.org/r/153935 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=f23062c7c557bf865e80720147a1405366ed267b
All remaining migrations are tracked in other bugs.
Thanks Rolf