how to start unit test inside the ide since RAP M4 [message #33375] |
Thu, 14 June 2007 14:05 |
Eclipse User |
|
|
|
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 #34455 is a reply to message #33456] |
Fri, 22 June 2007 11:12 |
Eclipse User |
|
|
|
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 #97630 is a reply to message #97515] |
Thu, 10 July 2008 18:20 |
Eclipse User |
|
|
|
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 #98110 is a reply to message #97754] |
Tue, 15 July 2008 01:02 |
Eclipse User |
|
|
|
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 #98857 is a reply to message #98272] |
Fri, 18 July 2008 09:16 |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04664 seconds