Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] build for target A, test on target B

We, at JBoss Tools, are using two distincts TP for compiling/packaging and running unit tests.

On Tue, Jul 16, 2019 at 11:46 AM Mickael Istria <mistria@xxxxxxxxxx> wrote:
Hi,

On Tue, Jul 16, 2019 at 11:34 AM Christian Pontesegger <christian.pontesegger@xxxxxx> wrote:
To my knowledge there is no way to set the target file on a target-
platform-configuration.

Not sure what you mean, but you can create eclipse-target-definition artifacts in https://wiki.eclipse.org/Tycho/Packaging_Types#eclipse-target-definition, reference them in the target-platform-configuration block and even use variables to switch between them according to system properties, profiles, whatever.

That said, Tycho is more about building artifacts than orchestrating test benches, so for this case, it might make sense that you create one test bundle including a test suite referencing all the tests you want to run on the older platform, and build and publish it in some p2 repo with Tycho, but run it with some other tools.
You can easily script something that install (using `eclipse -application org.ecliose.equinox.p2.director ....`) this master test suite and the PDE test launcher in a given product and run the tests using some `eclipse -application org.eclipse.pde.junit.runtime.uitestapplication ...`.

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


--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top