Community
Participate
Working Groups
This seems to be a reoccurrence of bug 128972 or bug 216946. I have a target platform for my plugins containing Eclipse Platform, JUnit framework, and some other extra dependencies. Under 4.16 i used to run my test plugin-fragments fine with this platform as "Junit Plugin Tests". Eclipse 4.17 cannot launch my tests now due to org.eclipse.pde.junit.runtime and its dependencies missing in the target platform. Updating the target platform to the latest versions of repositories and dependencies didn't help
Related or duplicate of bug 566642 ?
(In reply to Alexander Levsha from comment #0) > Eclipse 4.17 cannot launch my tests now due to org.eclipse.pde.junit.runtime > and its dependencies missing in the target platform. Are those missing bundles actually part of your target platform? To check do Ctrl+Shift+A and look for them. (In reply to Andrey Loskutov from comment #1) > Related or duplicate of bug 566642 ? No, that bug only affected features not bundles. IMO the issue here is that PDE requires the junit.runtime bundles to be part of the target platform. Those bundles should be in sync with the IDE, not whatever eclipse RCP version you're building against. We have used targets in the past containing eclipse 4.7 and the latest junit.runtime bundles to consume some fixed bugs in them.
> Are those missing bundles actually part of your target platform? To check do Ctrl+Shift+A and look for them. That's the point, i didn't have to include them in the platform before the update. My understanding is that PDE used to include the test-related bundles from the running platform if the active platform didn't contain them. Updating my target platform to 2020-09 repositories didn't help until i added JDT and PDE to the platform. Which really have no place there, except as a workaround for this bug.
(In reply to Alexander Levsha from comment #3) > That's the point, i didn't have to include them in the platform before the > update. You're right. I just tried this in 4.16 and it does indeed work (though only for junit4, junit5 is missing in org.eclipse.pde.launching.JUnitLaunchConfigurationDelegate::getRequiredPlugins). I did not know this functionality existed. It was removed with bug 527378: https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/164023/9/ui/org.eclipse.pde.launching/src/org/eclipse/pde/launching/JUnitLaunchConfigurationDelegate.java (the findPluginInHost call).
New Gerrit change created: https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/170240
(In reply to Julian Honnen from comment #4) > (though only > for junit4, junit5 is missing in > org.eclipse.pde.launching.JUnitLaunchConfigurationDelegate:: > getRequiredPlugins). Opened bug 567552 for this.
Gerrit change https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/170240 was merged to [master]. Commit: http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=38c8c345907f1121e4b118e0d046c7cd45251e33
Julian, can you please verify this fix.
verified with Build id: I20201006-1800