Community
Participate
Working Groups
Build Identifier: Helios final As far as I understand all references to the org.junit4 bundle as well as org.eclipse.jdt.junit4.runtime were removed and this bundle should not be needed anymore. However PDE plugin tests still do not run without these bundles being available in the target platform or the launching application. The source of the problem appears to be org.eclipse.pde.launching.JUnitLaunchConfigurationDelegate at line 431 For more information, please see http://www.eclipse.org/forums/index.php?t=msg&th=172554&start=0& Reproducible: Always
The tests do require the junit4 bundles to run, the line you specified is not the root of the problems though. The junit4 bundles are being included in the Eclipse SDK, but I don't know what requires them. cc'ing Dani as he will know more about what junit bundles are required.
>As far as I understand all references to the org.junit4 bundle as well as >org.eclipse.jdt.junit4.runtime were removed This is two times wrong ;-) 1. 'org.junit4' is no longer needed but only if you replace the reference with 'org.junit' version 4.8.1 2. The 'org.eclipse.jdt.junit4.runtime' is still needed as it is the Eclipse JDT side of the runtime story. See also http://wiki.eclipse.org/Eclipse/Testing/JUnit4_Changes.
I think the problem is that there is a hardcoded reference to the 'org.junit4' bundle in the PDE source code. We tried to remove the 'org.junit4' from the Buckminster PDE feature but that actually crashed some builds. Not because they were referencing this bundle directly, but because they wanted a junit4 build. The product contains 'org.junit' 4.8.1.
Looks like the launcher should be fixed up to include the org.junit bundle(s) rather than the org.junit4 bundle: org.eclipse.pde.launching.JUnitLaunchConfigurationDelegate.getRequiredPlugins(ILaunchConfiguration)
Fixed in HEAD. There is no need to require org.junit4. org.junit is still required.