Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] Why is "HeadlessTestApplication" launched as a singleton

Right - i'll file a bug and provide you patch.

Tom

Von meinem iPhone gesendet

Am 17.09.2012 um 19:31 schrieb Igor Fedorenko <igor@xxxxxxxxxxxxxx>:

> And you want to remove cardinality="singleton-global" from tycho app,
> right? I guess this is possible, I just do know when any of us will be
> able to look at this.
> 
> --
> Regards,
> Igor
> 
> On 12-09-17 12:58 PM, Tom Schindl wrote:
>> Well you can launch OSGi-Applications through code (ApplicationDescriptor)
>> 
>> The code can be seen here:
>> https://github.com/tomsontom/e-fx-clipse/blob/master/at.bestsolution.efxclipse.runtime.jemmy/src/at/bestsolution/efxclipse/runtime/jemmy/OSGiJemmyBootstrapTestCase.java
>> 
>> 
>> 
>> Am 17.09.12 18:49, schrieb Igor Fedorenko:
>>> How do you run eclipse applications from within junit tests?
>>> 
>>> --
>>> Regards,
>>> Igor
>>> 
>>> On 12-09-17 12:30 PM, Tom Schindl wrote:
>>>> Hi,
>>>> 
>>>> I'm trying to run an Equinox-OSGi-Application as an automated test
>>>> through PDE and through maven-tycho:
>>>> 
>>>> In PDE I launch the test suite using
>>>> org.eclipse.pde.junit.runtime.coretestapplication which is defined like
>>>> this:
>>>> 
>>>>>     <extension
>>>>>           id="coretestapplication"
>>>>>           point="org.eclipse.core.runtime.applications">
>>>>>        <application
>>>>>              visible="false">
>>>>>           <run
>>>>> 
>>>>> class="org.eclipse.pde.internal.junit.runtime.CoreTestApplication">
>>>>>           </run>
>>>>>        </application>
>>>>>     </extension>
>>>> 
>>>> which means I can launch inside my JUnit-Test my own OSGi-Application
>>>> when I run inside the eclipse IDE through the PDE-Junit-Plugin.
>>>> 
>>>> In contrast when running in maven, I launch the
>>>> org.eclipse.tycho.surefire.osgibooter.headlesstest which is defined like
>>>> this:
>>>> 
>>>>> <extension
>>>>>           id="headlesstest"
>>>>>           point="org.eclipse.core.runtime.applications">
>>>>>        <application
>>>>>              cardinality="singleton-global"
>>>>>              thread="main"
>>>>>              visible="true">
>>>>>           <run
>>>>> 
>>>>> class="org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication">
>>>>>           </run>
>>>>>        </application>
>>>>>     </extension>
>>>> 
>>>> which does not allow me to bring up another OSGi-Application. Is there a
>>>> reason you made the headlesstest a "singleton-global" or asked the other
>>>> way round: Are you open to change this?
>>>> 
>>>> Tom
>>>> 
>>> _______________________________________________
>>> tycho-dev mailing list
>>> tycho-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/tycho-dev
>> 
>> 
> _______________________________________________
> tycho-dev mailing list
> tycho-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-dev


Back to the top