Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » ideas about plugin automation test
ideas about plugin automation test [message #461895] Thu, 18 January 2007 02:27 Go to next message
Karl is currently offline KarlFriend
Messages: 92
Registered: July 2009
Member
Hi,all:
I write some unit testes for my plugins and customize the dependent
plugins which require. These unit testes for plugins can run inside
eclipse IDE,but I want to let them run in script enviroments like ant or
maven.You know, for plugins test,eclipse IDE and the dependent plugins
need to startup,so my question is:
1.Is it possible to run plugin test in scripts enviroments(like ant or
maven)?
2.If possible,how to do it?

Regards,
Karl.
Re: ideas about plugin automation test [message #461917 is a reply to message #461895] Thu, 18 January 2007 10:21 Go to previous message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
I presented an EclipseCon presentation last year on the subject; I believe that murphee is doing a similar for this year. You can do it, but you've got one of two choice; either you have to do all the tests out-of-container (i.e. just run the tests that don't need the workbench up and running) as part of the normal build/test cycle, and then do the in-container ones in a separate phase at the end.

Because the in-container tests need a running workbench, and the running workbench needs both the built plugin and all its dependencies installed, it's really not something that makes sense to fire up the workbench for every test indivudally. As a result, the plugin tests have a single 'test everything' plugin that acts to your build control (e.g. maven) as a single test, but then inside runs all the in-container tests. It'll generate the standard JUnit results, so Maven still sees lots of results, even if it only sees one. Forking each test by starting up a new workbench, whilst it may be the way Maven does it for JUnit tests, is just really not going to work.

I also put a blog post about automatically having in-container and out-of-container tests:

http://alblue.blogspot.com/2006/03/javaeclipse-running-all-t ests-in.html

The EclipseZilla presentation is at:

http://www.rcpapps.org/EclipseCon2006/

Or, if it can't be found there, look for submission 18 on http://eclipsezilla.eclipsecon.org.

Alex.
Previous Topic:RCP Exceptions not displayed
Next Topic:utf-8 problem in procuct
Goto Forum:
  


Current Time: Fri Apr 26 22:03:57 GMT 2024

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

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

Back to the top