On 08/23/2013 07:22 PM, Mickael Istria wrote:
I'm having a look at how to get test run automatically as part of Tycho build for Platform. I noticed some Tycho pitfalls ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=415701 ), caused by unusual patterns on some bundles: some actually compile code, and package it in a jar file that is then added into the bundle as a Bundle-ClassPath element. See for example https://hudson.eclipse.org/hudson/job/platform-sonar/ws/eclipse.jdt.core/org.eclipse.jdt.compiler.tool.tests/target/ (that you can reproduce with "mvn clean install -Dmaven.test.skip=false"). What is the technical reason for this? Is this something we could get rid of?
After some investigation, it appears that the issue on Tycho-side requires refactoring on the Maven-Surefire side, so it most likely won't be resolved soon. So I don't see any other way to have surefire running on those eclipse-test-plugins than stopping to use nested jars.

Benefits of not using inner jars for these tests:
* Makes tycho-surefire-plugin usable
* Simpler/recommanded OSGi pattern
Drawbacks
* ?

Can anyone elaborate on the drawbacks of not using nested jars for those tests (and in general in JDT) ? If there is no identified drawback, I'd like probably create a patch to fix that.

WDYT?
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
My blog <http://mickaelistria.wordpress.com> - My Tweets <http://twitter.com/mickaelistria>
_______________________________________________
platform-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/platform-dev

Reply via email to