Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] integration tests, products and tycho

The test runtime created by Tycho is an Equinox OSGi runtime - it is neither a p2 installation nor does it follow the "common" Eclipse installation file system layout. This could be changed. (The latter was requested in [1] once but so far there hasn't been a contribution yet.)

If you want a p2 installation as test runtime, this could be created through a director call. The director could be used to install a product defined elsewhere (once this is possible, i.e. when eclipse-product is implemented), but it won't be (reasonably) possible to re-use a product zip from elsewhere because the test would be missing in that installation.

If you want this feature, you could open an enhancement and we can discuss further details there.

Regards
Tobias
 


[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=343152

> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
> bounces@xxxxxxxxxxx] On Behalf Of Dahanne, Anthony
> Sent: Montag, 31. Oktober 2011 22:21
> To: Tycho user list
> Subject: [tycho-user] integration tests, products and tycho
> 
> Hello all,
> I want to run integration tests on a product; integration tests that would
> test installation and migration steps (using p2) inside a product.
> So, I first explored the option of using tycho-surefire-plugin to run
> those tests; defining all the required dependencies (IUs), the required
> bundle start levels, and it almost worked; but something was missing :
> tycho surefire plugin does not create a p2 profile before launching the
> runtime... also, tycho hardcodes the use of the /target/work/data as its
> osgi.instance.area (-data)  so no way to tell tycho to use a valid
> osgi.instance.area (that would have been filled thanks to p2 touchpoint
> actions when installing the required IUs)
> 
> I think once, Jan, we talked about this, and you told me that I should
> rather explore the use of a product that would get built before I launch
> those integration tests : that would actually work since when Tycho
> creates a product, the p2 profile is created and the osgi.instance.area is
> populated as expected.
> 
> How could I do to tell tycho surefire plugin to start an existing product
> and interact with it : installing my integration tests and running them
> inside of this running product ?
> 
> The only option I can think of is writing in Java some code to run the
> product, install my tests inside of it, tell the runtime to start them,
> publish the test results in target/surefire, and finally stop the runtime.
> 
> What do you think about this ?
> 
> Regards,
> 
> 
> Anthony Dahanne
> Développeur logiciel / Software Developer
> Compuware Montreal
> 75 Rue Queen, Suite 6500
> Montreal, QC, Canada H3C 2N6
> +1-514-798-8949
> 
> 
> 
> 
> Le contenu de ce courriel s'adresse au destinataire seulement. Il contient
> de l'information pouvant être confidentielle. Vous ne devez ni le
> copier ni l'utiliser ni le divulguer à qui que ce soit à moins que vous
> soyez le destinataire ou une personne désignée autorisée. Si vous le
> receviez par erreur, veuillez nous aviser immédiatement et le détruire.
> 
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or
> disclose it to anyone else. If you received it in error please notify us
> immediately and then destroy it.
> 
> 
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user

Back to the top