|
Re: JUnits, GUI Tests [message #49740 is a reply to message #48922] |
Sun, 08 March 2009 18:12 |
Chris Dennett Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Hi Raster,
Sounds like the best solution would be to make two seperate plug-ins --
one which is for the model and one for the view (myplugin.model.** and
myplugin.ui.**, I suppose). Then, when you need to do any unit testing,
you can just use the model plug-in. Not sure about how to do GUI tests.
Cheers,
Chris
On 03/03/2009 4:56, Raster wrote:
> Hi,
>
> I am creating an eclipse plugin.
> I need to also do this using Test Driven Development.
>
> A large part of my plugin code uses eclipse work bench elements - IContaner,
IProject, IJavaProject, IFolder and so on.
>
> 1) How do I structure my code so that I can unit test code thats involving
these elements without doing GUI testing?
> 2) How do I write GUI tests?
>
> Raster
>
|
|
|
Re: JUnits, GUI Tests [message #49770 is a reply to message #49740] |
Mon, 09 March 2009 03:41 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Chris Dennett wrote:
> Hi Raster,
>
> Sounds like the best solution would be to make two seperate plug-ins --
> one which is for the model and one for the view (myplugin.model.** and
> myplugin.ui.**, I suppose). Then, when you need to do any unit testing,
> you can just use the model plug-in. Not sure about how to do GUI tests.
SWTBot to the rescue for GUI tests. It is designed to test the gui.
http://www.eclipse.org/swtbot
Dave
|
|
|
|
Re: JUnits, GUI Tests [message #592958 is a reply to message #48922] |
Sun, 08 March 2009 18:12 |
Chris Dennett Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Hi Raster,
Sounds like the best solution would be to make two seperate plug-ins --
one which is for the model and one for the view (myplugin.model.** and
myplugin.ui.**, I suppose). Then, when you need to do any unit testing,
you can just use the model plug-in. Not sure about how to do GUI tests.
Cheers,
Chris
On 03/03/2009 4:56, Raster wrote:
> Hi,
>
> I am creating an eclipse plugin.
> I need to also do this using Test Driven Development.
>
> A large part of my plugin code uses eclipse work bench elements - IContaner,
IProject, IJavaProject, IFolder and so on.
>
> 1) How do I structure my code so that I can unit test code thats involving
these elements without doing GUI testing?
> 2) How do I write GUI tests?
>
> Raster
>
|
|
|
Re: JUnits, GUI Tests [message #592972 is a reply to message #49740] |
Mon, 09 March 2009 03:41 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Chris Dennett wrote:
> Hi Raster,
>
> Sounds like the best solution would be to make two seperate plug-ins --
> one which is for the model and one for the view (myplugin.model.** and
> myplugin.ui.**, I suppose). Then, when you need to do any unit testing,
> you can just use the model plug-in. Not sure about how to do GUI tests.
SWTBot to the rescue for GUI tests. It is designed to test the gui.
http://www.eclipse.org/swtbot
Dave
|
|
|
|
Powered by
FUDForum. Page generated in 0.03778 seconds