Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Catch-22 with useUIHarness and excluding org.eclipse.ui.ide ?

Thanks for that Tom, however doesn’t seem to work for me. It complains the feature could not be found, unsurprising as the reactor order didn’t changed and the feature is the second to last module, before the actual product..

It’s also listing unsatisfied dependencies from o.e.ui.ide.application, o.e.compare, etc to o.e.ui.ide which is suspicious as I’d have thought it shouldn’t start the IDE workbench when configured with my product & application.

I came across this old StackOverflow post which is pretty much what I want to do but presumably the problem still exists?


Clutching at straws I also tried adding o.e.ui.ide via <dependencies> instead to try to override the target platform filter, but unsurprisingly didn’t work either as it can’t add in what it no longer knows about.

Seems like I’ll need to post-process the build output to remove o.e.ui.ide, not pretty!

Regards,
Justin

On 4 Mar 2016, at 01:00, Tom Bryan (tombry) <tombry@xxxxxxxxx> wrote:

On 3/3/16, 7:50 PM, "tycho-user-bounces@xxxxxxxxxxx on behalf of Justin Dolezy" <tycho-user-bounces@xxxxxxxxxxx on behalf of justin.dolezy@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

The tycho-surefire docs indicate it’s possible to run a different application/product to the IDE workbench but I can’t find any concrete examples. Running my own product to host the tests would be another potential catch 22 although easily resolved by running the test fragments at the end of the reactor I suppose.

Just to answer this part, you can specify the application and product as part of the Mojo's configuration: https://eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html

We do something like this, 

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<testSuite>com.foo.bar.tests</testSuite>
<testClass>${testSuite}</testClass>
<includes>
<include>**/*Test.java</include>
</includes>
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<product>com.foo.product</product>
<application>com.foo.application</application>
<dependencies>
<dependency>
<type>p2-installable-unit</type>
<artifactId>com.foo.feature</artifactId>
<version>0.0.0</version>
</dependency>
</dependencies>
</configuration>
</plugin>

_______________________________________________
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