Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » how to start unit test inside the ide since RAP M4
how to start unit test inside the ide since RAP M4 [message #33375] Thu, 14 June 2007 14:05 Go to next message
Eclipse UserFriend
Originally posted by: benedikt.arnold.beyondsoft.de

Hi!
I changed the target to the M4 target.
The launch configuration for my application works fine but the launch
configurations for my unit tests did not work anymore. I run the tests as a
"junit plug-in test" and I' ve choosen the headless application. The test
plugin and the plugins I want test did not have a dependency to
org.eclipse.ui.ide but this plugin is needed to run the tests. So I tried to
copy this plugin to my target. Then I realized that this plugin has a
dependency to the rcp plugins, that are not in the target.

How does the rap team launch their test plugins from inside the ide?

Greetings, Ben
Re: how to start unit test inside the ide since RAP M4 [message #33456 is a reply to message #33375] Thu, 14 June 2007 15:37 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
Hi Benedikt,

that's the reason why we don't wanted to build a target. But with the
namespace switch in M4, eclipse is too confused with all the extension
points and packages. So we decided to build a target for you. Setting a
per-project target would help us here (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=159072) but this is not an
easy task for the PDE guys.

There are several approaches how to do this stuff:
a) between developing and testing, change the target (it's a possibility
but i know: no way ;) )
b) import all the needed plugins of RAP to your workspace and switch the
target back to RCP/SDK or whatever your tests need.
Cause of your plugin tests rely on org.eclipse.ui.ide (which has a
dependency to org.eclipse.ui.workbench and org.eclipse.ui) - coping all
of them to your target would case much trouble (as I said, that's the
reason why we build a target).
The drawback is that you may have problems when debugging your
application. I said "may" because the problems of eclipse with it's
namespace trouble is not reproduceable.
At the moment, it isn't the cleanest solution but the only way to work
with it. Maybe we/someone will come up with an better approach to make
it easier for all of us.
c) use plain junit tests ;)

This is just my point of view. Maybe there are better solutions for this
problem - tell me :)


Cheers
Benny

Benedikt Arnold wrote:
> Hi!
> I changed the target to the M4 target.
> The launch configuration for my application works fine but the launch
> configurations for my unit tests did not work anymore. I run the tests as a
> "junit plug-in test" and I' ve choosen the headless application. The test
> plugin and the plugins I want test did not have a dependency to
> org.eclipse.ui.ide but this plugin is needed to run the tests. So I tried to
> copy this plugin to my target. Then I realized that this plugin has a
> dependency to the rcp plugins, that are not in the target.
>
> How does the rap team launch their test plugins from inside the ide?
>
> Greetings, Ben
>
>
Re: how to start unit test inside the ide since RAP M4 [message #34455 is a reply to message #33456] Fri, 22 June 2007 11:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: benedikt.arnold.beyondsoft.de

Hi!

> b) import all the needed plugins of RAP to your workspace and switch the
> target back to RCP/SDK or whatever your tests need.
> Cause of your plugin tests rely on org.eclipse.ui.ide (which has a
> dependency to org.eclipse.ui.workbench and org.eclipse.ui) - coping all of
> them to your target would case much trouble (as I said, that's the reason
> why we build a target).
> The drawback is that you may have problems when debugging your
> application. I said "may" because the problems of eclipse with it's
> namespace trouble is not reproduceable.
> At the moment, it isn't the cleanest solution but the only way to work
> with it. Maybe we/someone will come up with an better approach to make it
> easier for all of us.

The problem is, that my plugin test did not depend on org.eclipse.ui.ide nor
on a plugin that depends on it. If you want I can provide a screenshot of
the plugin dependency tree. I don't know where the dependency is from, but I
think it comes from the pde junit runner.

> c) use plain junit tests ;)

I think I am using plain junit tests :-)

Greetings,
Ben
Re: how to start unit test inside the ide since RAP M4 [message #97515 is a reply to message #34455] Thu, 10 July 2008 08:57 Go to previous messageGo to next message
Frank Gerhardt is currently offline Frank GerhardtFriend
Messages: 81
Registered: July 2009
Member
>> b) import all the needed plugins of RAP to your workspace and switch the
>> target back to RCP/SDK or whatever your tests need.
>> Cause of your plugin tests rely on org.eclipse.ui.ide (which has a
>> dependency to org.eclipse.ui.workbench and org.eclipse.ui) - coping all of
>> them to your target would case much trouble (as I said, that's the reason
>> why we build a target).
>> The drawback is that you may have problems when debugging your
>> application. I said "may" because the problems of eclipse with it's
>> namespace trouble is not reproduceable.
>> At the moment, it isn't the cleanest solution but the only way to work
>> with it. Maybe we/someone will come up with an better approach to make it
>> easier for all of us.

Hi Benjamin, any news on this topic?

I just wrote a JUnit test for my RAP application and wanted to run it.
No way? I can't believe it!

>
>> c) use plain junit tests ;)
>
> I think I am using plain junit tests :-)

I'm using OSGi APIs, so I must run the tests in OSGi.

Frank.


--
Dr. Frank Gerhardt

Gerhardt Informatics Kft.
http://www.GerhardtInformatics.com
--
SENS-Expert http://www.SoftwareExperts.de
Re: how to start unit test inside the ide since RAP M4 [message #97532 is a reply to message #97515] Thu, 10 July 2008 09:01 Go to previous messageGo to next message
Frank Gerhardt is currently offline Frank GerhardtFriend
Messages: 81
Registered: July 2009
Member
Frank Gerhardt schrieb:
>>> b) import all the needed plugins of RAP to your workspace and switch
>>> the target back to RCP/SDK or whatever your tests need.
>>> Cause of your plugin tests rely on org.eclipse.ui.ide (which has a
>>> dependency to org.eclipse.ui.workbench and org.eclipse.ui) - coping
>>> all of them to your target would case much trouble (as I said, that's
>>> the reason why we build a target).
>>> The drawback is that you may have problems when debugging your
>>> application. I said "may" because the problems of eclipse with it's
>>> namespace trouble is not reproduceable.
>>> At the moment, it isn't the cleanest solution but the only way to
>>> work with it. Maybe we/someone will come up with an better approach
>>> to make it easier for all of us.
>
> Hi Benjamin, any news on this topic?#

Ah, I found it while searching deeper in the newsgroup. You answered it
in the thread "RAP JUnit plugin in M3" from April 2008.

Frank.



--
Dr. Frank Gerhardt

Gerhardt Informatics Kft.
http://www.GerhardtInformatics.com
--
SENS-Expert http://www.SoftwareExperts.de
Re: how to start unit test inside the ide since RAP M4 [message #97630 is a reply to message #97515] Thu, 10 July 2008 18:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: evolanakis.innoopract.com

Hi Frank,

if you have the RAP 1.1 SDK installed there should be a Run As > RAP
JUnit Test command in the context menu.

See the New & Noteforthy for RAP 1.1 for details on this feature:
http://www.eclipse.org/rap/noteworthy/news_11.php#Tooling

Hope this helps,
Elias.

Frank Gerhardt wrote:
>>> b) import all the needed plugins of RAP to your workspace and switch
>>> the target back to RCP/SDK or whatever your tests need.
>>> Cause of your plugin tests rely on org.eclipse.ui.ide (which has a
>>> dependency to org.eclipse.ui.workbench and org.eclipse.ui) - coping
>>> all of them to your target would case much trouble (as I said, that's
>>> the reason why we build a target).
>>> The drawback is that you may have problems when debugging your
>>> application. I said "may" because the problems of eclipse with it's
>>> namespace trouble is not reproduceable.
>>> At the moment, it isn't the cleanest solution but the only way to
>>> work with it. Maybe we/someone will come up with an better approach
>>> to make it easier for all of us.
>
> Hi Benjamin, any news on this topic?
>
> I just wrote a JUnit test for my RAP application and wanted to run it.
> No way? I can't believe it!
>
>>
>>> c) use plain junit tests ;)
>>
>> I think I am using plain junit tests :-)
>
> I'm using OSGi APIs, so I must run the tests in OSGi.
>
> Frank.
>
>


--
---
Elias Volanakis
Innoopract, Inc.
http://www.innoopract.com
Re: how to start unit test inside the ide since RAP M4 [message #97754 is a reply to message #97630] Fri, 11 July 2008 13:50 Go to previous messageGo to next message
Frank Gerhardt is currently offline Frank GerhardtFriend
Messages: 81
Registered: July 2009
Member
Elias Volanakis schrieb:
> Hi Frank,
>
> if you have the RAP 1.1 SDK installed there should be a Run As > RAP
> JUnit Test command in the context menu.
>
> See the New & Noteforthy for RAP 1.1 for details on this feature:
> http://www.eclipse.org/rap/noteworthy/news_11.php#Tooling

Thank! I'm now trying to run the RAP tests from the command line for the
build. How would I do that?

Frank.
Re: how to start unit test inside the ide since RAP M4 [message #98110 is a reply to message #97754] Tue, 15 July 2008 01:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: evolanakis.innoopract.com

Hi Frank,

to be honest I've no idea. AFAIK in our build (i.e. the RAP build) we
just run plain junit tests.

Maybe somebody else on the team does want to answer this?

Regards,
Elias.

Frank Gerhardt wrote:
> Elias Volanakis schrieb:
>> Hi Frank,
>>
>> if you have the RAP 1.1 SDK installed there should be a Run As > RAP
>> JUnit Test command in the context menu.
>>
>> See the New & Noteforthy for RAP 1.1 for details on this feature:
>> http://www.eclipse.org/rap/noteworthy/news_11.php#Tooling
>
> Thank! I'm now trying to run the RAP tests from the command line for the
> build. How would I do that?
>
> Frank.

--
---
Elias Volanakis
Innoopract, Inc.
http://www.innoopract.com
Re: how to start unit test inside the ide since RAP M4 [message #98272 is a reply to message #98110] Tue, 15 July 2008 12:48 Go to previous messageGo to next message
Frank Gerhardt is currently offline Frank GerhardtFriend
Messages: 81
Registered: July 2009
Member
Elias Volanakis schrieb:
> Hi Frank,
>
> to be honest I've no idea. AFAIK in our build (i.e. the RAP build) we
> just run plain junit tests.
>
> Maybe somebody else on the team does want to answer this?

Well, it's not as straight-forward as I thought. We are working on this
now already for the second day.

What we do is that we use the Ant runner to run the tests inside RAP, it
works with an Ant script that just outputs "Hello, world.". But the
tests that use our own core plug-ins are not activated properly...

Frank.



--
Dr. Frank Gerhardt

Gerhardt Informatics Kft., Eclipse Foundation member
http://www.GerhardtInformatics.com
--
SENS-Expert http://www.SoftwareExperts.de
Re: how to start unit test inside the ide since RAP M4 [message #98857 is a reply to message #98272] Fri, 18 July 2008 09:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

unfortunately RAP JUnit supports running tests from the IDE only at the
moment. I didn't find the time to create an ANT task for running RAP
JUnit tests yet. Sorry, but RAP tooling is almost completly created
within the RAP-developer's spare time...



Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Frank Gerhardt [mailto:fg@frankgerhardt.com]
Bereitgestellt: Dienstag, 15. Juli 2008 14:49
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: how to start unit test inside the ide since RAP M4
Betreff: Re: how to start unit test inside the ide since RAP M4

Elias Volanakis schrieb:
> Hi Frank,
>
> to be honest I've no idea. AFAIK in our build (i.e. the RAP build) we
> just run plain junit tests.
>
> Maybe somebody else on the team does want to answer this?

Well, it's not as straight-forward as I thought. We are working on this
now already for the second day.

What we do is that we use the Ant runner to run the tests inside RAP, it

works with an Ant script that just outputs "Hello, world.". But the
tests that use our own core plug-ins are not activated properly...

Frank.



--
Dr. Frank Gerhardt

Gerhardt Informatics Kft., Eclipse Foundation member
http://www.GerhardtInformatics.com
--
SENS-Expert http://www.SoftwareExperts.de
Re: how to start unit test inside the ide since RAP M4 [message #100044 is a reply to message #98272] Fri, 25 July 2008 06:07 Go to previous message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi Frank,

have you made any progress on automatically running your junit tests? I
(and maybe others) would be really interested in if you found a way to
get it work.

Regards,
Stefan.

Frank Gerhardt schrieb:

> Well, it's not as straight-forward as I thought. We are working on this
> now already for the second day.
>
> What we do is that we use the Ant runner to run the tests inside RAP, it
> works with an Ant script that just outputs "Hello, world.". But the
> tests that use our own core plug-ins are not activated properly...
>
> Frank.
>
>
>
Previous Topic:no 'default' entrypoint outside of exclipse
Next Topic:Handling bundle lifecycle?
Goto Forum:
  


Current Time: Fri Apr 19 16:11:38 GMT 2024

Powered by FUDForum. Page generated in 0.02700 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top