swtbot with non-default target platform [message #10491] |
Tue, 16 December 2008 10:56  |
Eclipse User |
|
|
|
At my job we don't use the default eclipse target platform. So, while
playing around with swtbot (version 2), I tried to get the rcpmail sample
running with a different target platform.
It suprised me, that I have to add net.sf.swtbot.eclipse.ui to the target
platform. Otherwise I get this error message: Application
"net.sf.swtbot.eclipse.ui.swtbottestapplication" could not be found in the
registry
net.sf.swtbot.eclipse.ui depends on a lot of plugins. I would prefer not
to add them to my target platform.
As far as I understand, net.sf.swtbot.eclipse.ui starts the tests in a
separate thread. Therefore it has to be installed in the running eclipse,
from which the tests are started. But I don't understand why I need to put
it in my target platform.
Can someone clear this up for me?
Thanks,
Jonas
|
|
|
Re: swtbot with non-default target platform [message #10524 is a reply to message #10491] |
Tue, 16 December 2008 12:51   |
Eclipse User |
|
|
|
Hi Jonas,
You would infact need all the SWTBot plugins on the target platform.
This includes the ui plugin and net.sf.swtbot.finder and
net.sf.swtbot.eclipse.finder in addition to the dependencies for swtbot.
I've tried to minimize the dependencies of net.sf.swtbot.eclipse.ui, but
it still pulls in quite some dependencies. Any ideas around reducing
these dependencies are welcome. I'm thinking about splitting the plugin
into two, with one containing the actual UI that's needed in the
runtime, and the other containing the swtbottstapplication, and is
lightweight.
If packaging your plugins is your concern, then here's what I recommend:
Create two features com.foo.example and com.foo.example.test. The test
feature is what contains the test plugins and swtbot, and the is
dependent on the actual feature that contains your application.
-- Ketan
On 16/12/08 21:26, Jonas Pfannschmidt wrote:
> At my job we don't use the default eclipse target platform. So, while
> playing around with swtbot (version 2), I tried to get the rcpmail
> sample running with a different target platform.
>
> It suprised me, that I have to add net.sf.swtbot.eclipse.ui to the
> target platform. Otherwise I get this error message: Application
> "net.sf.swtbot.eclipse.ui.swtbottestapplication" could not be found in
> the registry
>
> net.sf.swtbot.eclipse.ui depends on a lot of plugins. I would prefer not
> to add them to my target platform.
>
> As far as I understand, net.sf.swtbot.eclipse.ui starts the tests in a
> separate thread. Therefore it has to be installed in the running
> eclipse, from which the tests are started. But I don't understand why I
> need to put it in my target platform.
>
> Can someone clear this up for me?
>
>
> Thanks,
> Jonas
>
|
|
|
|
|
|
|
|
|
Re: swtbot with non-default target platform [message #11968 is a reply to message #11955] |
Fri, 19 December 2008 05:45  |
Eclipse User |
|
|
|
I've already checked this into SVN.
Expect a working build this weekend or early next week.
-- Ketan
On 19/12/08 15:11, Jonas Pfannschmidt wrote:
> I also think it would be a good idea too separate ui and a small
> swtbottstapplication.
>
> For now I will use Ketan's approach with two features. This will make it
> a bit easier to handle all needed plugins.
>
> Thanks,
> Jonas
>
|
|
|
Powered by
FUDForum. Page generated in 0.07254 seconds