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

Hello,
Sorry to bump... (I guess many of you are busy at ece2011 -- lucky you! ;-)
but in other words, is it possible to run integration tests in a built product with tycho ? (with tycho-surefire-plugin for example)
If no, do you think it is something possible creating a new tycho plugin ?
Thanks
Anthony


Â
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.
Â

DeÂ: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] De la part de Dahanne, Anthony
EnvoyÃÂ: 31 octobre 2011 17:21
ÃÂ: Tycho user list
ObjetÂ: [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