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 ?

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>



Back to the top