[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[tycho-user] Using surefire with grade
|
Hi to anyone,
we have gradle as default build system in our company and so I have to build our eclipse plugin projechts with grade as well. Therefore I have implemented some special grade plugins, I have
hosted at github.
Now I want to add the feature to run plugintests. So my idea was to have an eclipse application somewhere, to install surefire osgibooter, the test provider (junta in my case) which is used and
my plugins and start this in a headless call analogue to the way tycho does.
My test properties file looks like:
#created by egripse plugin
#Sat Nov 29 20:09:22 CET 2014
testprovider=org.apache.maven.surefire.junit4.JUnit4Provider
failifnotests=false
reportsdirectory=build/reports
redirectTestOutputToFile=true
testclassesdirectory=/Users/OleyMa/vcs/egripse/testprojects/flat/org.eclipse.egripse.plugin.test/build/classes/main
runOrder=filesystem
testpluginname=org.eclipse.egripse.plugin.test
But I get an ClassNotFoundException like below although I have the following jarfuls in plugins folder of my eclipse installation to use:
- org.eclipse.tycho.surefire.osgibooter-0.21.0.jar
- surefire-api-2.18.jar
- surefire-junit4-2.18.jar
So I don’t know if I read the source code of tyco surefire plugin correct, but I thought that it does it the same way.
Can you please help me to find what’s going wrong in my case?
Thank you,
Cheers
Markus
Time to load bundles: 8
!SESSION 2014-11-29 20:09:22.561 -----------------------------------------------
eclipse.buildId=4.4.1.M20140925-0400
java.version=1.8.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=de_DE
Framework arguments: -application org.eclipse.tycho.surefire.osgibooter.uitest -testproperties /Users/OleyMa/vcs/egripse/testprojects/flat/org.eclipse.egripse.plugin.test/build/headless/uitest/surefire.properties -testApplication org.eclipse.ui.ide.workbench
Command-line arguments: -debug -consoleLog -application org.eclipse.tycho.surefire.osgibooter.uitest -testproperties /Users/OleyMa/vcs/egripse/testprojects/flat/org.eclipse.egripse.plugin.test/build/headless/uitest/surefire.properties -testApplication org.eclipse.ui.ide.workbench -data build/workspace1417288162303
!ENTRY org.eclipse.equinox.p2.publisher.eclipse 4 0 2014-11-29 20:09:27.219
!MESSAGE Unable to acquire PluginConverter service during generation for: /Users/OleyMa/vcs/egripse/testprojects/flat/org.eclipse.egripse.plugin.test/build/headless/uitest/plugins/eclipsesurefire-0.45.jar.
!ENTRY org.eclipse.equinox.p2.publisher.eclipse 4 0 2014-11-29 20:09:27.254
!MESSAGE Unable to acquire PluginConverter service during generation for: /Users/OleyMa/vcs/egripse/testprojects/flat/org.eclipse.egripse.plugin.test/build/headless/uitest/plugins/surefire-api-2.18.jar.
!ENTRY org.eclipse.equinox.p2.publisher.eclipse 4 0 2014-11-29 20:09:27.254
!MESSAGE Unable to acquire PluginConverter service during generation for: /Users/OleyMa/vcs/egripse/testprojects/flat/org.eclipse.egripse.plugin.test/build/headless/uitest/plugins/surefire-junit4-2.18.jar.
!ENTRY org.eclipse.equinox.p2.publisher.eclipse 4 0 2014-11-29 20:09:27.435
!MESSAGE Unable to acquire PluginConverter service during generation for: /Users/OleyMa/vcs/egripse/testprojects/flat/org.eclipse.egripse.plugin.test/build/headless/uitest/plugins/eclipsesurefire-0.45.jar.
!ENTRY org.eclipse.equinox.p2.publisher.eclipse 4 0 2014-11-29 20:09:27.446
!MESSAGE Unable to acquire PluginConverter service during generation for: /Users/OleyMa/vcs/egripse/testprojects/flat/org.eclipse.egripse.plugin.test/build/headless/uitest/plugins/surefire-api-2.18.jar.
!ENTRY org.eclipse.equinox.p2.publisher.eclipse 4 0 2014-11-29 20:09:27.447
!MESSAGE Unable to acquire PluginConverter service during generation for: /Users/OleyMa/vcs/egripse/testprojects/flat/org.eclipse.egripse.plugin.test/build/headless/uitest/plugins/surefire-junit4-2.18.jar.
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
Starting application: 57903
org.eclipse.m2e.logback.configuration: Logback config file: /Users/OleyMa/vcs/egripse/testprojects/flat/org.eclipse.egripse.plugin.test/build/workspace1417288162303/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.5.0.20140606-0033.xml
org.eclipse.m2e.logback.configuration: Initializing logback
java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
at org.eclipse.m2e.logback.configuration.LogHelper.logJavaProperties(LogHelper.java:26)
at org.eclipse.m2e.logback.configuration.LogPlugin.loadConfiguration(LogPlugin.java:189)
at org.eclipse.m2e.logback.configuration.LogPlugin.configureLogback(LogPlugin.java:144)
at org.eclipse.m2e.logback.configuration.LogPlugin.access$2(LogPlugin.java:107)
at org.eclipse.m2e.logback.configuration.LogPlugin$1.run(LogPlugin.java:62)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
!ENTRY org.eclipse.m2e.logback.configuration 2 0 2014-11-29 20:10:21.053
!MESSAGE Exception while setting up logging:org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
!STACK 0
java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
at org.eclipse.m2e.logback.configuration.LogHelper.logJavaProperties(LogHelper.java:26)
at org.eclipse.m2e.logback.configuration.LogPlugin.loadConfiguration(LogPlugin.java:189)
at org.eclipse.m2e.logback.configuration.LogPlugin.configureLogback(LogPlugin.java:144)
at org.eclipse.m2e.logback.configuration.LogPlugin.access$2(LogPlugin.java:107)
at org.eclipse.m2e.logback.configuration.LogPlugin$1.run(LogPlugin.java:62)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
!ENTRY org.eclipse.core.net 1 0 2014-11-29 20:10:22.920
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16|ads-root.de|*.ads-root.de|vsa.de|*.vsa.de by an external source. This value will be overwritten using the values from the preferences
!ENTRY org.eclipse.core.net 1 0 2014-11-29 20:10:22.928
!MESSAGE System property http.proxyHost is not set but should be proxy.vsa.de.
!ENTRY org.eclipse.core.net 1 0 2014-11-29 20:10:22.929
!MESSAGE System property http.proxyPort is not set but should be 8080.
Application Started: 60690
-------------------------------------------------------
T E S T S
-------------------------------------------------------
org.apache.maven.surefire.util.SurefireReflectionException: java.lang.ClassNotFoundException: org.apache.maven.surefire.junit4.JUnit4Provider cannot be found by org.eclipse.tycho.surefire.osgibooter_0.21.0; nested exception is java.lang.ClassNotFoundException: org.apache.maven.surefire.junit4.JUnit4Provider cannot be found by org.eclipse.tycho.surefire.osgibooter_0.21.0
java.lang.ClassNotFoundException: org.apache.maven.surefire.junit4.JUnit4Provider cannot be found by org.eclipse.tycho.surefire.osgibooter_0.21.0
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.apache.maven.surefire.util.ReflectionUtils.loadClass(ReflectionUtils.java:203)
at org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:128)
at org.apache.maven.surefire.booter.SurefireReflector.instantiateProvider(SurefireReflector.java:247)
at org.apache.maven.surefire.booter.ProviderFactory.createProvider(ProviderFactory.java:81)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:171)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:123)
at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:87)
at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplicat