Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Is there a way to specify what bundles get loaded when running tests with tycho-surefire-plugin?

Cool, this is interesting so I don't need to repeat all dependencies at each test project pom...

cheers

Cristiano


On 01/07/11 01:27, Igor Fedorenko wrote:
It is possible to introduce additional dependencies into the runtime
using pluginManagement element like below.

<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonatype.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<dependencies>
<dependency>
<artifactId>org.eclipse.jdt.launching.macosx</artifactId>
<version>3.2.100</version>
<type>eclipse-plugin</type>
</dependency>
</dependencies>
</configuration>
</plugin>
</plugins>
</pluginManagement>


Such additional dependencies (and everything they depend on) will be
resolved in the context of project's target platform configuration.

--
Regards,
Igor



On 11-06-30 7:41 PM, TK Gospodinov wrote:
I am trying to launch an Eclipse-based product and run automated UI
tests with WindowTester. The product itself is complex and consists of
several hundred plugins, some of which need to be resolved when
launching it, even though they are not referenced in the manifests. When
I run mvn clean test -X, I see a list of plugins that are being resolved
by tycho-surefire-plugin:

[DEBUG] Installation OSGI bundles:
[DEBUG]
reference:file:C:/Users/Administrator/.m2/repository/p2/osgi/bundle/org.eclipse.ecf.filetransfer/3.0.0.v20090831-1906/org.eclipse.ecf.filetransfer-3.0.0.v20090831-1906.jar
[DEBUG]
reference:file:C:/Users/Administrator/.m2/repository/p2/osgi/bundle/org.eclipse.ui.navigator.resources/3.4.1.M20090826-0800/org.eclipse.ui.navigator.resources-3.4.1.M20090826-0800.jar
[DEBUG]
reference:file:C:/Users/Administrator/.m2/repository/p2/osgi/bundle/org.eclipse.core.variables/3.2.200.v20090521/org.eclipse.core.variables-3.2.200.v20090521.jar
[DEBUG]
reference:file:C:/Users/Administrator/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.p2.engine/1.0.102.R35x_v20091117/org.eclipse.equinox.p2.engine-1.0.102.R35x_v20091117.jar
[DEBUG]
reference:file:C:/Users/Administrator/.m2/repository/p2/osgi/bundle/org.eclipse.ecf.identity/3.0.0.v20090831-1906/org.eclipse.ecf.identity-3.0.0.v20090831-1906.jar
...

However, I need to include other plugins as well for the product to
launch correctly. Currently, I am seeing this:

osgi> Time to load bundles: 1734
Starting application: 3372
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4:36.792s
[INFO] Finished at: Thu Jun 30 10:01:55 CDT 2011
[INFO] Final Memory: 81M/155M
[INFO]
------------------------------------------------------------------------

and the product never starts.

I appreciate your help!


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top