Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Upgrade 0.20 -> 0.21 (or 0.22-SNAPSHOT) fails running surefire-plugin

Hi Niklaus,

I have the same problems with tests that do not run anymore. Even though I
added the dependencies to the target platform as extra requirement. My
product under test is also part of the same maven build. Maybe you could
check if this https://bugs.eclipse.org/bugs/show_bug.cgi?id=449363 is the
same that you encounter and add you to the bug.

Best Regards,

Ralph

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx]
On Behalf Of Niklaus Giger
Sent: Donnerstag, 13. November 2014 14:19
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Upgrade 0.20 -> 0.21 (or 0.22-SNAPSHOT) fails running
surefire-plugin

Hi 

We are using tycho as our build system and are quite happy with them.

When I tried to upgrade to from 0.20 to 0.21 (because I want to switch to
Java8) I ran into troubles that running the surefire tests do not work
anymore.

When running mvn clean compile install I get the following error
> [INFO] --- tycho-surefire-plugin:0.22.0-SNAPSHOT:test (default-test) @ 
> ch.rgw.utility.tests --- [INFO] Expected eclipse log file:
> /tmp/elexis-3-core/ch.rgw.utility.tests/target/work/data/.metadata/.lo
> g>
> [INFO] Command line:
> 	[/usr/lib/jvm/jdk-8-oracle-x64/jre/bin/java,
-Dosgi.noShutdown=false,
> 	-Dosgi.os=linux, -Dosgi.ws=gtk, -Dosgi.arch=x86_64,
-Dosgi.clean=true,
> 	-jar,
> 	
/home/niklaus/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1
> 	
.3.0.v20120522-1813/org.eclipse.equinox.launcher-1.3.0.v20120522-1813.jar,
> 	-data, /tmp/elexis-3-core/ch.rgw.utility.tests/target/work/data, -
install,
> 	/tmp/elexis-3-core/ch.rgw.utility.tests/target/work, -configuration,
> 	/tmp/elexis-3-core/ch.rgw.utility.tests/target/work/configuration,
> 	-application, org.eclipse.tycho.surefire.osgibooter.uitest,
> 	-testproperties,
> 	/tmp/elexis-3-core/ch.rgw.utility.tests/target/surefire.properties]>
> -------------------------------------------------------
> 
>  T E S T S
> 
> -------------------------------------------------------
> java.lang.RuntimeException: Bundle ch.rgw.utility.tests is not found
> 
> 	at
> 	
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.getBundleClassLoa
> 	der(OsgiSurefireBooter.java:162) at
> 	
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.createCombinedCla
> 	ssLoader(OsgiSurefireBooter.java:98) at
> 	
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireB
> 	ooter.java:91) at
> 	
org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication$1.run(Abst
> 	ractUITestApplication.java:35)

I just don't understand why it does not find its own bundle (a test
fragment) ch.rgw.utility.tests

Code can be found at https://github.com/ngiger/elexis-3-core/tree/java8

I tried (as suggested by
https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617c) to use
extraDependencies but it did not help.

Best regards

Niklaus

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user




Back to the top